17,377
社区成员
发帖
与我相关
我的任务
分享
--------这样查下看有数据库没有呢?注意到product所在的用户下面去查找
select a.constraint_name 外键名,
a.table_name 外键表,
b.constraint_name 主键名,
b.table_name 关联主键表
from all_constraints a, all_constraints b
where b.table_name = 'PRODUCT'
/* and a.constraint_type = 'R'
and b.constraint_type = 'P'*/
and a.r_constraint_name = b.constraint_name