Integrity constraint
From: vm22 <vivekmarwaha_at_gmail.com>
Date: Tue, 3 Feb 2009 00:39:34 -0800 (PST)
Message-ID: <c110059e-e0b6-49eb-96b9-67b63afe9bf6_at_v39g2000pro.googlegroups.com>
Date: Tue, 3 Feb 2009 00:39:34 -0800 (PST)
Message-ID: <c110059e-e0b6-49eb-96b9-67b63afe9bf6_at_v39g2000pro.googlegroups.com>
Hi,
I have a developer who has written the following code to delete some records:
DELETE FROM x
WHERE id NOT IN (SELECT id
FROM y)
AND id NOT IN (SELECT id
FROM z);
ORA-02292: integrity constraint (Y_FK) violated - child record found
When there is already a clause in my delete to state do not delete records that are found in table Y, why do I get the integrity constraint error message? Received on Tue Feb 03 2009 - 02:39:34 CST