16.20 - CHECK (boolean_condition) - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24

A conditional expression, including scalar comparison conditions using, for example, any of the following comparison operators.

  • =
  • <>
  • >
  • >=

For more information about these operators, see Teradata Vantage™ SQL Functions, Expressions, and Predicates, B035-1145.

When a CHECK constraint is part of the column definition, then its defined search condition cannot reference any other columns in its table, nor are set specifications allowed. Valid column-level CHECK constraints that reference candidate keys of other tables are permitted. See also the CREATE TABLE topic “BETWEEN … AND … Constraints” in Teradata Vantage™ SQL Data Definition Language Detailed Topics , B035-1184 and Teradata Vantage™ - Database Design, B035-1094.

A table-level CHECK constraint can compare any columns defined for its table, both against each other and against constant values.