Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-02291: integrity constraint () violated - parent key not found

Tony007Jan 16 2013 — edited Jan 16 2013
hi i have cache 22 situation when i update child values i get this error ORA-02291: integrity constraint () violated - parent key not found but when i go and update parent table i get this error ORA-02292: integrity constraint () violated - child record found,what must i do i this situation
child table
UPDATE CITY
   SET  PROVINCECODE  = TRIM (PROVINCECODE);
   
   
parent table   
   UPDATE PROVINCES
     SET  PROVINCECODE  = TRIM(PROVINCECODE)
This post has been answered by jeneesh on Jan 16 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2013
Added on Jan 16 2013
2 comments
331 views