Commands
REVOKE
Use the REVOKE
command to revoke privileges from a user.
Syntax
Revoke database privileges from a user.
Revoke schema privileges from a user.
Revoke table privileges from a user.
Revoke source privileges from a user.
Revoke materialized view privileges from a user.
Parameters
Parameter or clause | Description |
---|---|
GRANTED BY clause | The specified user after the GRANTED BY clause must be the current user. By default, the current user is root. |
Example
Revoke all privileges for all sources in schema1
from user user1
.
REVOKE the SELECT privilege for materialized view mv1
, which is in schema schema1
of database db1
, from user user1
.
Revoke the SELECT privilege for source s1
from user user1
.