Skip to main contentSkip to solution

Which of the following are DDL commands?

(A) ALTER TABLE

(B) DROP TABLE

(C) UPDATE TABLE

(D) CREATE TABLE

Solution

✅ Correct Option: 1

DDL (Data Definition Language) commands define or change the structure of database objects. ALTER TABLE changes a table's structure, DROP TABLE deletes the table itself, and CREATE TABLE creates a new table. So (A), (B) and (D) are DDL.


(C) UPDATE changes the data stored in rows, so it is a DML (Data Manipulation Language) command, not DDL. Also, "UPDATE TABLE" is not valid SQL syntax; the correct form is UPDATE table_name SET ...

Keyboard Shortcuts

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