`

查看引用表AAA的外键约束

SQL 
阅读更多
 select a.constraint_name, a.table_name, b.constraint_name 
from user_constraints a, user_constraints b
where a.constraint_type = 'R' 
and b.constraint_type = 'P' 
and a.r_constraint_name = b.constraint_name 
and b.table_name ='AAA'
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics