修复ORA-02273:某些外键引用了此唯一/主键
技术问答
250 人阅读
|
0 人回复
|
2023-09-14
|
试图删除唯一约束,我遇到了这样的错误:2 o8 J4 B, G+ e& \
ORA-02273: this unique/primary key is referenced by some foreign keys" G% b: Y" l; s6 ^& r* n
如何找到引用我唯一约束的外键列表?
' @- A9 Q' P+ h, G6 G+ S. F
1 A- G3 B' M4 H% K6 p解决方案:
9 [; M8 r( q: D
4 D$ p) X3 B' y$ d* A
# v" U$ ~0 Z$ J2 ]
: b) f- i/ {$ `: Y1 B select * from all_constraints * V) A& a7 [6 I" v7 R, h
where constraint_type='R' and r_constraint_name='YOUR_CONSTRAINT'; |
|
|
|
|
|