CREATE UNIQUE CONSTRAINT statement
The CREATE UNIQUE CONSTRAINT statement defines a unique constraint for a key in a table.
CREATE UNIQUE CONSTRAINT tableOwner.tableName. | This option specifies the name of the unique constraint. | ||||||
---|---|---|---|---|---|---|---|
CREATE UNIQUE CONSTRAINT tableOwner.tableName.uniqueConstraintName | This option specifies the fully qualified name. | ||||||
PRIMARYKEY | This option indicates whether the unique constraint is a primary key or a unique key. The following table lists valid values for the PRIMARYKEY parameter. PRIMARYKEY parameter values
| ||||||
KEYCOLUMNS (columnName, ...) | This option specifies the primary key columns that are included in the definition of the unique constraint. | ||||||
PERIOD BUSINESS_TIME | This option indicates whether the BUSINESS_TIME values are unique. The starting and ending columns of BUSINESS_TIME are defined in the table on which the index is created. The following table lists valid values for the PERIOD BUSINESS_TIME parameter. PERIOD BUSINESS_TIME parameter values
|
Related topic