Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 711
wheleph Avatar asked Nov 16 '09 09:11

wheleph


1 Answers

select * from all_constraints 
where constraint_type='R' and r_constraint_name='YOUR_CONSTRAINT';
like image 149
Erich Kitzmueller Avatar answered Sep 21 '22 19:09

Erich Kitzmueller