Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Consultar os relacionamentos de chave estrangeira de uma tabela


Isso deve funcionar (ou algo próximo):
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>');