Skip to main contentSkip to solution

To add an attribute to an existing table, we use __________ command.

Solution

✅ Correct Option: 2

ALTER TABLE is the SQL DDL command used to change the structure of an existing table. An attribute (column) is added with the ADD clause, for example ALTER TABLE Student ADD Age INT;


Option 1: UPDATE changes the values stored in existing rows (UPDATE Student SET ...), not the table structure.

Option 3: MODIFY is not a standalone command. It appears only as a clause inside ALTER TABLE, to change a column's data type or size.

Option 4: there is no such SQL command. INSERT INTO adds new rows, not columns.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question