SQL Commands: DDL, DML, and DCL
Ask by ICSM Computer
Updated 27 Mar 2026
1. What is DDL (Data Definition Language)?
DDL commands are used to define and manage the structure of the database (schema). These commands deal with tables, indexes, and database objects.
Common DDL Commands:
Example:
Key Point:
DDL commands automatically commit changes (cannot rollback easily).
2. What is DML (Data Manipulation Language)?
Answer:
DML commands are used to manipulate data inside tables.
Common DML Commands:
Example:
Key Point:
3. What is DCL (Data Control Language)?
DCL commands are used to control access and permissions in the database.
Common DCL Commands:
Example:
Key Point:
Used for security and authorization
Quick Difference Table
Interview Tip
If asked in interview, answer like this:
“DDL is used to define database structure, DML is used to manipulate data, and DCL is used to control access and permissions.”