DCL (Data Control Language)
DCL (Data Control Language) commands are used to manage access privileges for users and database objects. These commands allows to grant specific permissions to users or roles, enabling them to interact with the database in controlled ways.
GRANT
Assigns specific privileges (e.g., SELECT, INSERT, UPDATE, DELETE) on a table, schema object, or system privilege to a user or role.
Syntax
Example
REVOKE
Takes away previously granted privileges from a user or role.
Syntax
Example
Last updated
Was this helpful?