15.10 - Identity Column - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Content Type
Programming Reference
Publication ID
B035-1144-151K
Language
English (United States)
Last Update
2018-06-05

You cannot specify identity columns for nonpartitioned NoPI tables.

You should not specify an identity column for a table that will be used with Unity Director.

Identity columns are ANSI SQL:2011-compliant.

GENERATED ALWAYS AS IDENTITY
Identity column values are always system-generated.
You cannot insert values into, or update, an identity column defined as GENERATED ALWAYS AS IDENTITY.
GENERATED BY DEFAULT AS IDENTITY
Identity column values can be system-generated or user-inserted:
  • When you insert a null into the column, the system generates an identity column value to replace it.
  • When you insert a value into the column, the system inserts the value into the identity column.