REVOKE DATABASE ROLE¶

Revokes a database role from an account role or another database role.

See also:

GRANT DATABASE ROLE , GRANT ROLE , REVOKE ROLE , GRANT <privileges>

Syntax¶

REVOKE DATABASE ROLE <name> FROM { ROLE | DATABASE ROLE } <parent_role_name>
Copy

Parameters¶

name

Specifies the identifier for the database role to revoke. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

DATABASE ROLE parent_role_name

Revokes the database role from the specified database role.

ROLE parent_role_name

Revokes the database role from the specified account role.

Examples¶

REVOKE DATABASE ROLE analyst FROM ROLE SYSADMIN;
Copy
REVOKE DATABASE ROLE dr1 FROM DATABASE ROLE dr2;
Copy