4. Adding, Changing or Dropping Columns Flashcards

1
Q

Which statement will allow you to add a new column to an existing table?

A

ALTER TABLE tablename

ADD COLUMN columnname datatype;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which statement will delete a column from a table?

A

ALTER TABLE table

DROP COLUMN columnname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When creating a new column in a table, the …… COLUMN keyword is to be included in the ALTER TABLE statement.

A

ADD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The ALTER TABLE statement allows a user to?

A

Add, modify and remove columns to a table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly