oracle查询某张表的外键(最终解决办法)

执行下面的sql语句查询外键:

select b.table_name, b.column_name from user_constraints a
inner join user_cons_columns b on a.constraint_name = b.constraint_name
 where a.r_constraint_name in
  (
   select e.constraint_name from user_constraints e  where e.table_name = 'T_POWER_POINT'
  )

说明:表名大写T_POWER_POINT



你可能感兴趣的:(oracle查询外键)