All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

What are TCL (Transaction Control Language), DCL (Data Control Language) and DQL (Data Query Language)

Post cover: What are TCL (Transaction Control Language), DCL (Data Control Language) and DQL (Data Query Language)
This content has been automatically translated from Ukrainian.
TCL (Transaction Ccontrol Llanguage), DCL (Data Ccontrol Llanguage) and DQL (Data Query Llanguage) are important elements in databases. We've previously covered DDL and DML. For a complete understanding, also consider TCL, DCL and DQL.

TCL (Transaction Control Language)

TCL used to manage transactions in the database. It allows you to perform commit (confirmation), rollback (cancellation) and save the recovery point in the database.
  • COMMIT: Confirmation of the transaction.
  • ROLLBACK: Cancellation (rollback) of a transaction.
  • SAVEPOINT: Saving the recovery point within a transaction.

DCL (Data Control Language)

DCL used to manage data access rights in a database. Includes granting or revoking access rights to users and roles, as well as privilege management.
  • GRANT: Granting access rights to users or roles.
  • REVOKE: Abolition of access rights to users or roles.

DQL (Data Query Language)

DQL is a data query language used to sample (search) data from a database. It allows you to perform various requests to obtain the necessary information from the database.
  • SELECT: Sampling (searching) data from the database using various conditions and criteria.

Difference between TCL, DCL and DQL

TCL is used to manage transactions, DCL - to manage access rights, and DQL - for sampling data from the database. Each of these languages plays an important role in the management and use of databases.

This post doesn't have any additions from the author yet.

05 Mar 19:38

Що таке Service Discovery в IT?

meme code
meme code@memecode
07 Mar 18:36

Що таке Кластеризація / Clustering в IT?

meme code
meme code@memecode
07 Mar 18:41

What is Fault Tolerance in IT?

meme code
meme code@memecode
22 Mar 11:24

What is CI/CD in software development?

meme code
meme code@memecode
Що таке DDL (Data Definition Language) та DML (Data Manipulation Language)? Коли та для чого використовуються?
27 Mar 18:37

Що таке DDL (Data Definition Language) та DML (Data Manipulation Language)? Коли та для чого використовуються?

meme code
meme code@memecode
27 Mar 18:47

Що таке атомарна транзакція (atomic transaction)?

meme code
meme code@memecode
02 Apr 07:17

What is Concurrency in IT?

meme code
meme code@memecode
03 Apr 06:17

What is Process Management in software development?

meme code
meme code@memecode
Що таке Environment Variables в розробці ПЗ?
03 Apr 06:31

Що таке Environment Variables в розробці ПЗ?

meme code
meme code@memecode
03 Apr 06:49

What is SSR (Server Side Rendering)?

meme code
meme code@memecode
03 Apr 06:53

What is CSR (Client Side Rendering)?

meme code
meme code@memecode
10 Apr 07:46

What are Webserver and Application Server?

meme code
meme code@memecode