回答

收藏

修复ORA-02273:某些外键引用了此唯一/主键

技术问答 技术问答 311 人阅读 | 0 人回复 | 2023-09-14

试图删除唯一约束,我遇到了这样的错误:
6 e3 e$ C- M& T0 g* m  PORA-02273: this unique/primary key is referenced by some foreign keys
8 q7 K8 {$ L% \, c( y如何找到引用我唯一约束的外键列表?' b% ~/ @: x3 r5 m
                & x& {; Z* V8 Q
解决方案:7 z8 c8 L  c1 ^; s# I
               
) y: p( A7 p5 ^* d& i7 x. W$ X) r4 _( w: R
* R7 H& P" A: D! L4 i; i
                select * from all_constraints ! l; C; B, d, e% r
where constraint_type='R' and r_constraint_name='YOUR_CONSTRAINT';
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则