15.10 - Example: Specifying Column-Level Named CHECK Constraints - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

The request in this example names constraints at the column level.

    CREATE TABLE good_1 (
      column_1 INTEGER NOT NULL
       CONSTRAINT primary_1 PRIMARY KEY,
      column_2 INTEGER NOT NULL
       CONSTRAINT unique_1 UNIQUE,
      column_3 INTEGER
       CONSTRAINT check_1 CHECK (column_3 > 0);