The REFERENTIAL_CONSTRAINTS table
provides information about foreign keys.
The REFERENTIAL_CONSTRAINTS table has
these columns:
CONSTRAINT_CATALOGThe name of the catalog to which the constraint belongs. This value is always
def.CONSTRAINT_SCHEMAThe name of the schema (database) to which the constraint belongs.
CONSTRAINT_NAMEThe name of the constraint.
UNIQUE_CONSTRAINT_CATALOGThe name of the catalog containing the unique constraint that the constraint references. This value is always
def.UNIQUE_CONSTRAINT_SCHEMAThe name of the schema containing the unique constraint that the constraint references.
UNIQUE_CONSTRAINT_NAMEThe name of the unique constraint that the constraint references.
MATCH_OPTIONThe value of the constraint
MATCHattribute. The only valid value at this time isNONE.UPDATE_RULEThe value of the constraint
ON UPDATEattribute. The possible values areCASCADE,SET NULL,SET DEFAULT,RESTRICT,NO ACTION.DELETE_RULEThe value of the constraint
ON DELETEattribute. The possible values areCASCADE,SET NULL,SET DEFAULT,RESTRICT,NO ACTION.TABLE_NAMEThe name of the table. This value is the same as in the
TABLE_CONSTRAINTStable.REFERENCED_TABLE_NAMEThe name of the table referenced by the constraint.