SQL 修复 ORA-02273:这个唯一/主键被一些外键引用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1740959/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 04:25:40 来源:igfitidea点击:
Fix ORA-02273: this unique/primary key is referenced by some foreign keys
提问by wheleph
Trying to drop a unique constraint I've got such error:
试图删除一个唯一的约束我有这样的错误:
ORA-02273: this unique/primary key is referenced by some foreign keys
How to find the list of foreign keys by which my unique constraint is referenced?
如何找到引用我的唯一约束的外键列表?
回答by Erich Kitzmueller
select * from all_constraints
where constraint_type='R' and r_constraint_name='YOUR_CONSTRAINT';