Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Deleting with Instead Trigger in Oracle 8i
Morning,
you MUST use :OLD in a delete trigger and not :NEW. If you use :NEW then you get the message that n rows have been deleted, but they have not. Change the trigger to the following :
ELSIF DELETING THEN
DELETE FROM contractorsMV WHERE conIDMV = :OLD.conID; DELETE FROM contractors WHERE conID = :OLD.conID;
Cheers,
Norm.
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.comReceived on Wed Apr 16 2003 - 03:35:55 CDT
-------------------------------------
![]() |
![]() |