ORA-02292 delete data primary key constraint problem

A generally delete a table when the error occurs. Another reason is that a field of Table B Table A references a field as a constraint (the other argument is a foreign key).

If the field is called reference field, when B.field = A.field, and you want to delete A.field, then the burst error. The solution is to put B.field (part B.field = A.field's) kill, then kill A.field you want to delete

 

The question is, how do you know which table A table field references field or other fields? Error message and not give in, just give the name constraint. Then you can check all_constraints.

 

select table_name from all_constraints where constraint_name = 'constraint name' (generally as FK_xxx)

View selected table_name know which indexed field A.

Guess you like

Origin www.cnblogs.com/52wxb1314/p/10972333.html