futurefuturehx
12/27/2018 - 12:07 PM

查询所有外键的表

查询所有外键的表

select cl.table_name
  from user_cons_columns cl
  left join user_constraints c
    on cl.constraint_name = c.r_constraint_name
 where c.constraint_type = 'R'
   and c.table_name = '表名'