select fk_col.constraint_name, fk_col.table_name, fk_col.column_name
  from user_constraints pk, user_constraints fk, user_cons_columns fk_col
 where pk.table_name = 'TEST'
   and pk.constraint_type = 'P'
   and fk.r_constraint_name = pk.constraint_name
   and fk_col.constraint_name = fk.constraint_name
 order by 2, 3;

查找某个表被哪些表引用。外键

相关文章:

  • 2021-07-06
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-08-30
  • 2021-06-26
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2021-09-25
  • 2021-09-22
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案