DCL in SQL
DCL in SQL
REVOKE: This command is used to take away previously granted privileges from a user
or role.
3. WITH GRANT OPTION: When granting privileges, you can include the WITH GRANT
OPTION clause to allow the recipient to further grant the same privilege to others.
DENY (Not supported in all databases): Some databases support a DENY command,
which explicitly denies a user or role a specific privilege.
However, not all database management systems support this command.
This example creates a role called finance_team and grants it the SELECT privilege on the
salary_data table.
ALTER USER: You can use the ALTER USER command to modify the privileges of a
user.
SYSTEM GRANTS: DCL commands can also control system-level privileges, such as
creating databases or altering the schema.