The sysconstraints system catalog table lists the constraints placed on the columns in each database table. An entry is also placed in the sysindexes system catalog table (or sysindices view for Dynamic Server) for each unique, primary key, NOT NULL, or referential constraint that does not already have a corresponding entry in sysindexes or sysindices. Because indexes can be shared, more than one constraint can be associated with an index. The sysconstraints table has the following columns.
A composite index on the constrname and owner columns allows only unique values. An index on the tabid column allows duplicate values, and an index on the constrid column allows only unique values.
For check constraints (where constrtype = C), the idxname is always NULL. Additional information about each check constraint is contained in the syschecks and syscoldepend system catalog tables.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]