Syntax
Revoke database 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. |
Revoke privileges on future objects
To revoke privileges that would automatically apply to future objects created by a user, use theALTER DEFAULT PRIVILEGES command. This removes the need to revoke permissions manually for each new object.
Example
Revoke all privileges for all sources inschema1 from user user1.
mv1, which is in schema schema1 of database db1, from user user1.
s1 from user user1.