Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Delete trigger help please
I am trying to prevent deletion of certain data within a table that is identified with a SYS_PROT flag of 1. With a trigger, I would like to make sure that these fields are never deleted accidently. I can't seem to get it to work. Any help would be greatly appreciated:
DELETEMEA
from deletemea where deletemea.a_id = :old.a_id; if (numrows = 0) then delete from deletemea where deletemea.a_id = :old.a_id;end if;
END;
/
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Nov 02 2000 - 17:41:09 CST
![]() |
![]() |