Revokes privileges from users or roles.Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
Revoking privileges from usersDescription
To revoke some privilege you can use a privilege of a wider scope than you plan to revoke. For example, if a user has theSELECT (x,y) privilege, administrator can execute REVOKE SELECT(x,y) ..., or REVOKE SELECT * ..., or even REVOKE ALL PRIVILEGES ... query to revoke this privilege.
Partial Revokes
You can revoke a part of a privilege. For example, if a user has theSELECT *.* privilege you can revoke from it a privilege to read data from some table or a database.
Examples
Grant thejohn user account with a privilege to select from all the databases, excepting the accounts one:
mira user account with a privilege to select from all the columns of the accounts.staff table, excepting the wage one.