Which of the following commands falls under the category of DML in SQL?
Which of the following commands falls under the category of DML in SQL?
Solution
✅ Correct Option: 1
INSERT adds new rows to a table, so it works on the data itself. Commands that work on data (INSERT, UPDATE, DELETE, SELECT) belong to DML (Data Manipulation Language).
Options 2, 3 and 4: ALTER TABLE, DROP TABLE and DROP DATABASE change the structure of database objects, so they are DDL (Data Definition Language) commands.
DDL changes the structure (CREATE, ALTER, DROP, TRUNCATE), while DML changes the data inside that structure.
Related questions:
2026: 29 May Shift 2
2026: 29 May Shift 2
2025: 16 May Shift 1
2025: 21 May Shift 1
2026: 19 May Shift 1