Teradata Vantage™ - Temporal Table Support describes syntax that is especially relevant to temporal tables. Syntax that is not required, or that is not otherwise specific to temporal tables is generally not shown in this document. For additional syntax, see
Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144 ,
Teradata Vantage™ - SQL Data Manipulation Language, B035-1146 , and
Teradata Vantage™ - SQL Data Control Language, B035-1149.
REVOKE [ GRANT OPTION FOR ] privilege_spec ON item { TO | FROM } user_spec [...] [;]
- privilege_spec
-
{ ALL [ PRIVILEGES ] | [ ALL BUT ] { NONTEMPORAL | privilege } [,...] | NONTEMPORAL | privilege }
- item
-
{ database_name | user_name | [ database_name. | user_name. ] { table_name | view_name } }
- user_spec
-
[ALL] user_name
- GRANT OPTION FOR
- Specifies that only the GRANT authority is removed from the specified privileges for the specified grantees for the corresponding explicit privileges they have.
- ALL [PRIVILEGES]
- Specifies to revoke from the specified user all explicitly granted privileges that can be granted on the specified object, and that are held, either implicitly or explicitly, WITH GRANT OPTION by the user executing the REVOKE.
REVOKE ALL includes the NONTEMPORAL privilege if the InclNTforGrntOrRevokAll field of the DBS Control utility is set to TRUE. Otherwise, REVOKE ALL excludes the NONTEMPORAL privilege.
- ALL BUT
- Specifies to revoke all explicit database privileges from the specified user, except those listed, that can be granted on the specified object and that are held, either implicitly or explicitly, WITH GRANT OPTION by the user performing the REVOKE statement.
- NONTEMPORAL
- Specifies that the user cannot use the NONTEMPORAL prefix to perform nontemporal operations on table_name or view_name or on any transaction-time tables, bitemporal tables, or updatable views contained in database_name or user_name.
For details on the NONTEMPORAL privilege, see NONTEMPORAL Privilege.
- privilege
- Specifies a privilege other than NONTEMPORAL.
For details, see "REVOKE" in Teradata Vantage™ - SQL Data Control Language, B035-1149.
- ON database_name
- Specifies the name of a database that contains or may contain transaction-time tables, bitemporal tables, or both.
- ON user_name
- Specifies the name of a user that contains or may contain transaction-time tables, bitemporal tables, or both.
- ON table_name
- Specifies the name of a bitemporal or transaction-time table.
- ON view_name
- Specifies the name of an updatable view created on a bitemporal table or transaction-time table.
- TO [ALL] username
- FROM [ALL] username
- Specifies the name of an existing database or user that identifies the recipient.
If you specify ALL, then the object privileges are revoked from the named database or user and from every database or user owned by that database or user.