ADD CHECK (boolean_condition) - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

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

An unnamed CHECK column constraint as a table attribute, where column_name is the left-hand side of boolean_condition. A table attribute CHECK constraint can compare columns in the table and can compare column contents with constants. You can define a maximum of 100 table-level constraints for a table.

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

CONSTRAINT constraint_name
Named CHECK column constraint as a table attribute. Specify a column_name on the left-hand side of boolean_condition.