You are on page 1of 1

Database

SQL Commands:
SQL commands are mainly categorized into five categories:
 DDL (Data Definition Language)
 DML (Data Manipulation Language)
 DQL (Data Query Language)
 TCL ( Transaction Control Language)
 DCL (Data Control Language)

Data Definition Language:


DDL actually consists of the SQL commands that can be used to
define the database schema. It simply deals with the descriptions of the database schema and is
used to create and modify the structure of database objects in the database.
 Create (This command is used to create the database or its objects)
 Drop (This command is used to delete the objects from the database)
 Alter (This command is used to alter the structure of database)
 Truncate (This command is used to remove all records from a table)
 Comment (This command is used to add comments to the data dictionary)
 Rename (This command is used to rename an object existing in the database)

You might also like