0% found this document useful (0 votes)
14 views

DDL Is An Abbreviation For

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

DDL Is An Abbreviation For

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

DDL is an abbreviation for Data Definition Language.

It is concerned with database schemas and


descriptions of how data should be stored in the database. DDL statements are auto-committed,
meaning the changes are immediately made to the database and cannot be rolled back. These
commands enable database administrators and developers to manage and optimize MySQL
databases effectively.

DDL Command Description

CREATE DATABASE Creates a new database.

DROP DATABASE Deletes a database.

CREATE TABLE Creates a new table in a database.

ALTER TABLE Alters the structure of an existing table.

DROP TABLE Removes a table from a database.

DML

DML stands for Data Manipulation Language. It deals with data manipulation and includes the most
common SQL statements such as SELECT, INSERT, UPDATE, DELETE, etc. DML statements are not
auto-committed, meaning the changes can be rolled back if necessary. By mastering these DML
commands, you can efficiently manipulate data in MySQL databases.

DML Command Description

SELECT Retrieves data from a table.

INSERT Inserts new data into a table.

UPDATE Updates existing data in a table.

DELETE Deletes data from a table.

REPLACE Updates or inserts a record into a table.


DCL

DCL stands for Data Control Language. It includes commands such as GRANT and is primarily
concerned with rights, permissions, and other controls of the database system. DCL statements are
also auto-committed.

DCL Command Description

GRANT Grants permissions to a user or group of users.

REVOKE Revokes permissions from a user or group of users.

TCL

TCL stands for Transaction Control Language. It deals with transactions within a database, which are
groups of related DML statements treated as a single unit.

TCL Command Description

COMMIT Commits a transaction, making the changes permanent.

ROLLBACK Rolls back a transaction, undoing all the changes made.

SAVEPOINT Creates a save point within a transaction so that the transaction can be rolled back to that
necessary.

SET TRANSACTION Specifies the characteristics of a transaction, such as its isolation level.

You might also like