Question:

Which of the following is a DML command in SQL?

Show Hint

Remember — DML changes the data,
DDL changes the structure.
  • UPDATE
  • CREATE
  • ALTER
  • DROP
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

SQL commands are categorized mainly as DML, DDL, and DCL.
DML (Data Manipulation Language) includes commands that modify data,
like INSERT, UPDATE, DELETE, and SELECT.
UPDATE is used to modify existing records in a table,
so it is a classic DML command.
CREATE and ALTER are DDL (Data Definition Language) commands,
which define or modify database structures like tables.
DROP is also a DDL command used to delete tables or databases.
Therefore, the only DML command here is UPDATE.
Was this answer helpful?
0
0

Top Questions on SQL

View More Questions

Questions Asked in CBSE CLASS XII exam

View More Questions