The system table FOREIGNKEYCOLUMNS contains the columns of all the referential CONSTRAINT definitions for which the current user has privileges.
FOREIGNKEYCOLUMNS
OWNER |
CHAR(32) |
Name of table owner |
TABLENAME |
CHAR(32) |
Name of the table |
COLUMNNAME |
CHAR(32) |
Name of column |
FKEYNAME |
CHAR(32) |
Name of referential CONSTRAINT definition |
REFOWNER |
CHAR(32) |
Name of owner of referenced table |
REFTABLENAME |
CHAR(32) |
Name of referenced table |
REFCOLUMNNAME |
CHAR(32) |
Name of column of referenced table |
RULE |
CHAR(18) |
Rules for deleting the table |
CREATEDATE |
DATE(10) |
Creation date of referential CONSTRAINT definition |
CREATETIME |
TIME(8) |
Creation time of referential CONSTRAINT definition |
COMMENT |
LONG |
Comment about referential CONSTRAINT definition |
See also:
Evaluating System Tables ® FOREIGNKEYCOLUMNS