DB2 иностранные ключи
select
ref.tabschema concat '.' concat ref.tabname as foreign_table,
'>-' as rel,
ref.reftabschema concat '.' concat ref.reftabname as primary_table,
ref.constname as fk_constraint_name
from syscat.references ref
order by foreign_table, primary_table
Enrybi