sql >> Base de Datos >  >> RDS >> Oracle

Consultar las relaciones de clave externa de una tabla

Esto debería funcionar (o algo parecido):

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>');