Neoview SQL Reference Manual (R2.4)

grantee is authid
authid specifies an authorization ID to whom you revoke privileges. Authorization IDs
identify roles during the processing of SQL statements. The authorization ID must be a valid
role name, enclosed in double quotes. authid is not case-sensitive.
SQL:1999 specifies two special authorization IDs: PUBLIC and SYSTEM.
PUBLIC specifies all present and future authorization IDs.
SYSTEM specifies the implicit grantor of privileges to the creators of objects.
You cannot specify SYSTEM as an authid in a REVOKE statement.
drop-behavior
If you specify RESTRICT, the REVOKE operation fails if there are privilege descriptors or
objects that would no longer be valid after the specified privileges are removed. If you specify
CASCADE, any such dependent privilege descriptors and objects are removed as part of the
REVOKE operation.
The default is RESTRICT.
Considerations for REVOKE
Authorization and Availability Requirements
You can revoke only those privileges that you have previously granted to the role. If one or more
of the privileges does not exist, the system returns a warning.
You can revoke the PUBLIC privilege but you cannot revoke an individual privilege such as
SELECT.
Examples of REVOKE
This example revokes one role’s SELECT privileges on a table. The REVOKE operation fails
if there are privilege descriptors or objects that would no longer be valid after the SELECT
privilege is removed.
REVOKE SELECT ON TABLE persnl.employee
FROM "role.dev" RESTRICT;
This example revokes the privileges of granting SELECT and DELETE privileges on a table
from two roles. The REVOKE operation fails if there are privilege descriptors or objects that
would no longer be valid after the SELECT and DELETE privileges are removed (RESTRICT
is implied).
REVOKE GRANT OPTION FOR SELECT, DELETE
ON TABLE sales.odetail FROM "role.payroll", "role.finance";
This example revokes UPDATE privileges on two columns of a table. The REVOKE operation
fails if there are privilege descriptors or objects that would no longer be valid after the
UPDATE privileges are removed.
REVOKE UPDATE (start_date, ship_timestamp)
ON TABLE persnl.project FROM PUBLIC RESTRICT;
REVOKE Statement 155