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.
(explicit id mccfor002) mccfor002 (explicit id mccfor003) mccfor003

Multiple-Column Constraint Format

{ { { { NOT NULL | NULL } } | { UNIQUE | []DISTINCT } | PRIMARY KEY } ( column ) | <CHECK Clause>[] }
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.

1 Informix® extension