Which of the following are DDL commands?
(A) ALTER TABLE
(B) DROP TABLE
(C) UPDATE TABLE
(D) CREATE TABLE
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 ...
Related questions:
2025: 13 May Shift 2
2025: 13 May Shift 2
2025: 14 May Shift 1
2025: 13 May Shift 2
2026: 23 May Shift 2