Multiple-Column Constraint Format

Use the multiple-column constraint format to associate one or more columns with a constraint. This alternative to the single-column constraint format allows you to associate multiple columns with a constraint.
(1)
Multiple-Column Constraint Format

1 
2.2.2.1 NOT NULL
2.2.2.1 NULL
2.2.1 UNIQUE
2.2.1 1 DISTINCT
2.1 PRIMARY KEY
1  ( + , column )
1  %CHECK Clause2
Notes:
Element Description Restrictions Syntax
column Name of column or columns on which the constraint is placed Must be unique in a table, but the same name can be in different tables of the same database Identifier

This is a subset of the syntax of Multiple-Column Constraint Format that the CREATE TABLE statement supports.

This alternative to the single-column constraint segment of CREATE TEMP TABLE can associate multiple columns with a constraint. Constraints that you define on temporary tables are always enabled.

See also the section Differences Between a Unique Constraint and a Unique Index.