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:
|
ALL [PRIVILEGES]
|
Revokes all schema privileges. The optional keyword |
[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
One of the following:
- Superuser
- Privileges grantor
Examples
Revoke user Joe's usage privileges on schema online_sales.
=> REVOKE USAGE ON SCHEMA online_sales FROM Joe; REVOKE PRIVILEGE