Identity Columns and Bulk Inserts - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

Identity column values for rows bulk-inserted into a table defined with a GENERATED ALWAYS identity column are replaced automatically with system-generated numbers. A warning of this replacement is issued only once for all rows inserted using an INSERT ... SELECT statement. Other bulk-inserting utilities such as Teradata Parallel Data Pump and BTEQ imports receive the same warning for each row inserted.

Rows bulk-inserted into tables with either of the following identity column definitions are not guaranteed to be unique unless the appropriate row columns are constrained by a UPI, USI, PRIMARY KEY, or UNIQUE constraint.

  • GENERATED BY DEFAULT
  • GENERATED ALWAYS with CYCLE