Skip to main contentSkip to solution

Which of the following SQL Command is used to modify the table structure?

Solution

✅ Correct Option: 1

ALTER TABLE is a DDL (Data Definition Language) command that changes the structure of an existing table, such as adding, dropping or modifying columns and constraints.


Option 2: UPDATE changes the data (row values) in a table, not its structure, and the syntax is UPDATE table_name SET ..., with no word TABLE.

Option 3: CREATE TABLE makes a new table; it does not modify an existing one.

Option 4: there is no MODIFY TABLE command in standard SQL. MODIFY appears only inside ALTER TABLE (for example, ALTER TABLE t MODIFY col type).

Keyboard Shortcuts

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