15.00 - PRIMARY KEY Constraints Versus UNIQUE Constraints - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

prodname
Teradata Database
vrm_release
15.00
category
Programming Reference
featnum
B035-1184-015K

PRIMARY KEY Constraints Versus UNIQUE Constraints

UNIQUE and PRIMARY KEY constraints can only be defined on a column set that is also constrained to be NOT NULL.

To create a composite, or multicolumn, primary key for a table, you must specify the PRIMARY KEY constraint at the table level, not the column level.

Both UNIQUE and PRIMARY KEY constraints can be defined on a UDT column.

Teradata Database also supports the related constraints UNIQUE INDEX and UNIQUE PRIMARY INDEX.