WHAT ARE THE SUB LANGUAGES OF SQL?

807 viewsSQLSQL
0

WHAT ARE THE SUB LANGUAGES OF SQL?

Saraswat World Changed status to publish June 14, 2023
0
SQL SUBLANGUAGES
SQL DDL, DML, DCL, TCL, DQL

SQL consists of many types of statements which are classified in five types of sub-languages-

Data Definition Language (DDL): to create and modify the structure of the database. All the commands of DDL are auto-committed which means it permanently saves all the changes in the database.
DDL Commands:

           CREATE

           ALTER

           DROP

           TRUNCATE

Data Manipulation Language (DML): DML commands are used to modify the database. It is responsible for all forms of CHANGES in the database. The command of DML is not auto-committed which means it canโ€™t permanently save all the changes in the database. They can be rollback.
DML Commands:

           INSERT

           UPDATE

           DELETE

Data Control Language (DCL):ย DCL commands are used to GRANT and TAKE BACK authority from any database user.
DCL Commands:

           GRANT

           REVOKE

Transaction Control Language (TCL):ย TCL commands can only use with DML commands like
INSERT, DELETE and UPDATE only.

TCL Commands:

           COMMIT

           ROLLBACK

           SAVEPOINT

Data Query Language (DQL): DQL is used to fetch the data from the database.
DQL Command:

           SELECT
Saraswat World Changed status to publish June 14, 2023
Write your answer.

Posted

in

Tags:

Comments

Leave a Reply

A Tribute to Dilip Kumar