SQL DML DDL DCL Overview
SQL DML DDL DCL Overview
• Examples:
• • SELECT - Retrieve data from a table
• • INSERT - Add new records
• • UPDATE - Modify existing records
• • DELETE - Remove records
Data Definition Language (DDL)
• DDL commands are used to define, modify, or
remove the structure of database objects.
• Examples:
• • CREATE - Create a new table/database
• • ALTER - Modify table structure
• • DROP - Delete table/database
• • TRUNCATE - Delete all records quickly
Data Control Language (DCL)
• DCL commands are used to control access and
permissions on data.
• Examples:
• • GRANT - Give user permissions
• • REVOKE - Take back permissions
Summary Table: SQL Command
Category
Categories
Full Form Focus Area Examples
DML Data Manipulation Data inside tables SELECT, INSERT,
Language UPDATE, DELETE
DDL Data Definition Structure of CREATE, ALTER,
Language tables/databases DROP, TRUNCATE
DCL Data Control Permissions & GRANT, REVOKE
Language access control