SQL Ddl Dml Dcl Commands
SQL Ddl Dml Dcl Commands
DDL commands are used to define and modify the structure of database objects such as tables, indexes, and
schemas.
- TRUNCATE: To remove all records from a table without logging individual row deletions.
Examples:
StudentID INT,
Name VARCHAR(50),
Age INT
);
DML commands are used to manipulate data stored in the database. They allow inserting, updating, deleting,
Examples:
INSERT INTO Students (StudentID, Name, Age) VALUES (101, 'Alice', 21);
DCL commands are used to control access to data in the database. They deal with permissions and access
rights.
Examples: