ADD CONSTRAINT name - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Add a named constraint.

If you alter a nontemporal table that is defined with CHECK constraints into a temporal table with either valid time or transaction time, Vantage converts the definitions for those existing constraints into CURRENT CHECK constraints.

However, if there are any existing UNIQUE or PRIMARY KEY constraints defined on the nontemporal table, the system returns an error to the requestor.

You cannot place a constraint on a column with the JSON data type.