REVOKE (view)
Revokes privileges on a view from users and roles.
Syntax
REVOKE [ GRANT OPTION FOR ] { privilege[,...] | ALL [ PRIVILEGES ] }
ON [[database.]schema.]view[,...]
FROM grantee[,...]
[ CASCADE ]
Parameters
GRANT OPTION FORRevokes 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:
-
SELECT: Query the specified views.
-
ALTER: Modify a view's DDL with ALTER VIEW
-
DROP: Drop this view with DROP VIEW.
-
ALL PRIVILEGES- Revokes all privileges that pertain to views that also belong to the revoker. Users cannot revoke privileges that they themselves lack.
The optional keyword
PRIVILEGESconforms with the SQL standard. [database.]schemaDatabase and schema. The default schema is
public. If you specify a database, it must be the current database.view- The view on which to revoke privileges.
granteeSpecifies whose privileges are revoked, one of the following:
CASCADEIf the target grantees have a grant option to extend the specified privileges to other users,CASCADEspecifies to search for these users and revoke the privileges from them also.
Examples
Revoke SELECT privileges from user Joe on view test_view.
=> REVOKE SELECT ON test_view FROM Joe;
REVOKE PRIVILEGE