REVOKE (Schema)
Revokes schema privileges from users and roles.
Syntax
REVOKE [ GRANT OPTION FOR ] { privilege[,…] | ALL [ PRIVILEGES ] } ON SCHEMA [database.]schema[,…] FROM grantee[,…] [ CASCADE ]
Parameters
GRANT OPTION FOR
|
Revokes the grant option for the specified privileges. Current privileges for grantees remain unaffected. If you omit this clause, Vertica revokes both the grant option and current privileges. |
privilege |
The schema privilege to revoke, one of the following:
You can also revoke privileges from tables and views that they inherited on creation from this schema. When you revoke inherited privileges at the schema level, Vertica automatically applies the revocation to all tables and views that inherited these privileges.
|
ALL [PRIVILEGES]
|
Revokes USAGE AND CREATE privileges. Users cannot revoke privileges that they themselves lack. The optional keyword Inherited privileges must be explicitly revoked. |
[database.]schema
|
The schema on which to revoke privileges. If you specify a database, it must be the current database. |
grantee | Specifies whose privileges are revoked, one of the following: |
CASCADE
|
|
Privileges
Non-superuser, one of the following:
- Owner
- Privileges grantee given the option (
WITH GRANT OPTION
) of revoking privileges from other users or roles.
Examples
Revoke user Joe
's USAGE privilege on schema online_sales
.
=> REVOKE USAGE ON SCHEMA online_sales FROM Joe; REVOKE PRIVILEGE