Skip to main contentSkip to solution

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.

Keyboard Shortcuts

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