1. ORACLE中查看表中的外键来源于哪些表
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 = ‘表名‘
2.Oracle中查看表中的主键被被哪些表引用为外键
时间: 2024-10-05 05:21:43