Example: CHECK Constraints - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantage™ Data Types and Literals

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K
CREATE TABLE stats_tbl
   (Id INTEGER
   ,Sex CHAR(1)
   ,EdLev INTEGER
   ,CHECK (Sex = 'F' OR Sex = 'M')
   ,CHECK ((EdLev >= 0) AND (EdLev <= 22)));