Which of the following SQL Command is used to modify the table structure?
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).
Related questions:
2025: 21 May Shift 1
2025: 21 May Shift 1
2026: 31 May Shift 1