Fix ORA-02273: this unique/primary key is referenced by some foreign keys

天涯浪子 提交于 2019-12-20 12:15:13

问题


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?


回答1:


select * from all_constraints 
where constraint_type='R' and r_constraint_name='YOUR_CONSTRAINT';


来源:https://stackoverflow.com/questions/1740959/fix-ora-02273-this-unique-primary-key-is-referenced-by-some-foreign-keys

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!