CHECK constraint is used to define what format and values are allowed for a column.
The syntax of the CHECK constraint is as follows:
CHECK ( logical_expression )
If the logical expression of CHECK evaluates to TRUE, the row will be inserted.
If the CHECK constraint expression evaluates to FALSE, the row insert will fail.
|