查询一个数据库中有几个表引用了其中某个特定表的主键做为其外键

select t.table_name from user_constraints t
where t.constraint_type='R' and t.r_constraint_name
in(
select s.constraint_name from user_constraints s
where s.table_name='主表名' and s.constraint_type='P')

原文地址:https://www.cnblogs.com/shisw/p/3758987.html