REVOKE (Table)
Revokes table privileges from users and roles.
Syntax
REVOKE [ GRANT OPTION FOR ] { privilege[,…] | ALL [ PRIVILEGES ] }
ON {
[ TABLE ] [[database.]schema.]table[,…]
| ALL TABLES IN 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 |
One of the following privileges: Important: Only SELECT privileges can be revoked on system tables.
|
ALL [PRIVILEGES]
|
Revokes all table privileges. The optional keyword PRIVILEGES is supported to comply with the SQL standard. |
[database.]schema
|
Specifies a schema, by default myschema.thisDbObject One exception applies: you can specify system tables without their schema name. If you specify a database, it must be the current database. |
| table |
The table on which to revoke privileges. |
ALL SEQUENCES IN SCHEMA schema
|
Revokes privileges from all tables and views in the specified schema. |
| grantee |
Specifies whose privileges are revoked, one of the following: |
CASCADE
|
|
Privileges
One of the following:
- Superuser
- Privileges grantor
Examples
Revoke user Joe's privileges on table customer_dimension.
=> REVOKE ALL PRIVILEGES ON TABLE customer_dimension FROM Joe; REVOKE PRIVILEGE