FOREIGNKEYS
Using the
system table
FOREIGNKEYS
, you can determine the following database information:
All
referential constraints
in which table CUSTOMER is the referenced table
SELECT columnname, fkeyname, rule
FROM DOMAIN.FOREIGNKEYS
WHERE tablename = 'CUSTOMER'
Columns in referential constraints: see
FOREIGNKEYCOLUMNS