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;
2
Q
Which statement will delete a column from a table?
A
ALTER TABLE table
DROP COLUMN columnname;
3
Q
When creating a new column in a table, the …… COLUMN keyword is to be included in the ALTER TABLE statement.
A
ADD
4
Q
The ALTER TABLE statement allows a user to?
A
Add, modify and remove columns to a table