Which of the following is a DML command in SQL?
2025
Which of the following is a DML command in SQL?
- A.
UPDATE
- B.
CREATE
- C.
ALTER
- D.
DROP
Attempted by 1173 students.
Show answer & explanation
Correct answer: A
DML (Data Manipulation Language) commands are used to manipulate data within a database. These include commands like SELECT, INSERT, UPDATE, and DELETE. DDL (Data Definition Language) commands, on the other hand, are used to define or modify the structure of database objects. Examples include CREATE, ALTER, and DROP. Among the given options, UPDATE is used to modify existing data in a table, making it a DML command. CREATE, ALTER, and DROP are used to create, modify, or delete database structures, which are DDL commands. Therefore, the correct answer is UPDATE.