0% found this document useful (0 votes)
2 views5 pages

SQL DML DDL DCL Overview

The document explains three categories of SQL commands: Data Manipulation Language (DML) for modifying data in tables, Data Definition Language (DDL) for defining and altering database structures, and Data Control Language (DCL) for managing access and permissions. Examples of DML include SELECT, INSERT, UPDATE, and DELETE; DDL includes CREATE, ALTER, DROP, and TRUNCATE; and DCL includes GRANT and REVOKE. A summary table categorizes these commands by their focus area and examples.

Uploaded by

hrjesgroup
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

SQL DML DDL DCL Overview

The document explains three categories of SQL commands: Data Manipulation Language (DML) for modifying data in tables, Data Definition Language (DDL) for defining and altering database structures, and Data Control Language (DCL) for managing access and permissions. Examples of DML include SELECT, INSERT, UPDATE, and DELETE; DDL includes CREATE, ALTER, DROP, and TRUNCATE; and DCL includes GRANT and REVOKE. A summary table categorizes these commands by their focus area and examples.

Uploaded by

hrjesgroup
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SQL Command Categories

DML, DDL, and DCL Explained


Data Manipulation Language (DML)
• DML commands are used to manipulate or
modify data in existing tables.

• 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

You might also like