Query a Table’s Foreign Key relationships

This should work (or something close):

select table_name
from all_constraints
where constraint_type="R"
and r_constraint_name in 
  (select constraint_name
  from all_constraints
  where constraint_type in ('P','U')
  and table_name="<your table here>"); 

Leave a Comment