SQL SERVER – What is – DML, DDL, DCL and TCL – Introduction and Examples

SQL commands come in four groups: DML, DDL, DCL and TCL. DML

SQL SERVER - What is - DML, DDL, DCL and TCL - Introduction and Examples

DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database.

Examples: SELECT, UPDATE, INSERT statements

DDL

DDL is abbreviation of Data Definition Language. It is used to create and modify the structure of database objects in database.

Examples: CREATE, ALTER, DROP statements

DCL

DCL is abbreviation of Data Control Language. It is used to create roles, permissions, and referential integrity as well it is used to control access to database by securing it.

Examples: GRANT, REVOKE statements

TCL

TCL is abbreviation of Transactional Control Language. It is used to manage different transactions occurring within a database.

Examples: COMMIT, ROLLBACK statements

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.

Database
Previous Post
SQL SERVER – 2005 – Change Compatibility Level – T-SQL Procedure
Next Post
SQL SERVER – 2005 Best Practices Analyzer (January 2008)

Related Posts

170 Comments. Leave new

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.