Table Constraint Element

Function:

A table constraint specifies a constraint for a list of columns.

Invocation:

This element is part of the table element.

Syntax:

table_contraint_element.bmp
 

constraint identifier

A valid name for a constraint and must conform to the rules specified earlier in this section in section Identifiers.

    

Shortname clause:

shortname_clause.bmp
 

Reference clause:

references_clause.bmp
 

table_specification

Schema identifier. Table identifier is the expected format.

column_identifier

Optional. List of referenced columns.

    

Description:

UNIQUE and PRIMARY KEY constraints are called "unique constraints." A REFERENCES constraint is called "referential constraint." A table constraint element defines a constraint across one or more columns.

The following conventions hold true for the following explanations:

UNIQUE:

A UNIQUE constraint ensures that there are no two rows of T having identical values in the columns of C. Rows with NULL value(s), in any columns of C, do not effect this constraint.

 

FOREIGN KEY:

If specified, the REFERENCE's column list must conform to the following;

Limitations:

ANSI Specifics:

Adabas SQL Gateway Embedded SQL Specifics:

None.