Data control language


A data control language is a syntax similar to a computer programming language used to control access to data stored in a database. In particular, it is a component of Structured Query Language.
Examples of DCL commands include:
The operations for which privileges may be granted to or revoked from a user or role apply to both the Data definition language and the Data manipulation language, and may include CONNECT, SELECT, INSERT, UPDATE, DELETE, EXECUTE, and USAGE.
In the Oracle database, executing a DCL command issues an implicit commit. Hence you cannot roll back the command.
In PostgreSQL, executing DCL is transactional, and can be rolled back.
SQLite does not have any DCL commands as it does not have usernames or logins. Instead, SQLite depends on file system permissions to define who can open and access a database.