Syntax - Advanced SQL Engine - Teradata Database

Temporal Table Support

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
cjo1556732840654.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1182
lifecycle
previous
Product Category
Teradata Vantage™
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.
GRANT privilege_spec ON item TO
  { user_spec [,...] | PUBLIC }
  [ WITH GRANT OPTION ] [;]
privilege_spec
{ ALL [ PRIVILEGES ] |
  [ ALL BUT] { NONTEMPORAL | privilege } [,...]
}
item
{ database_name |
  user_name |
  [ database_name. | user_name. ] { table_name | view_name }
}
user_spec
[ALL] user_name
ALL [PRIVILEGES]
Specifies that the specified user is to receive all privileges that can be granted on the specified object.
GRANT ALL includes the NONTEMPORAL privilege if the InclNTforGrntOrRevokAll field of the DBS Control utility is set to TRUE. Otherwise, GRANT ALL excludes the NONTEMPORAL privilege.
All of the privileges, including the NONTEMPORAL privilege, that the grantor has on the object are granted if a user has them with WITH GRANT OPTION.
NONTEMPORAL
Specifies that the user can use the NONTEMPORAL prefix to perform nontemporal operations on transaction-time and bitemporal tables contained in database_name or user_name, on table_name, or on view_name.
privilege
Specifies a privilege other than NONTEMPORAL.

For details, see "GRANT" in Teradata Vantage™ - SQL Data Control Language, B035-1149.

ALL BUT
Specifies that the named user is to receive all privileges that can be granted on the specified object except for those specified in the privilege list. As in ALL, only those object privileges owned by the grantor WITH GRANT OPTION are granted.
ON database_name
Specifies the name of a database that contains or may contain transaction-time or 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 transaction-time or bitemporal table.
ON view_name
Specifies the name of an updatable view created on a transaction-time or bitemporal table.
TO [ALL] username
Specifies the name of an existing database or user that identifies the recipient.

If you specify ALL, then the object privileges are granted to the named database or user and to every database or user owned by that database or user now and in the future.

WITH GRANT OPTION
Specifies that the grantee receives the granted privileges WITH GRANT OPTION.