Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Compiled Trigger throws error
Maxim Demenko wrote:
> Jürg Schaufelberger schrieb: >
> > Instead of update you should do assignment to given fields of :NEW record > > CREATE OR REPLACE TRIGGER > AV_BB_EINZELPUNKT_EXAKTDEF > AFTER INSERT OR UPDATE OF ID_ART > ON AV_BB_EINZELPUNKT > FOR EACH ROW > BEGIN > IF :NEW.ID_ART IN (0) THEN > :NEW.ID_EXAKTDEFINIERT := 0; > ELSE > :NEW.ID_EXAKTDEFINIERT := 1; > END IF; > END; > > Best regards > > Maxim
Unless he actually means up update multiple records. In that case, a second trigger (after statement) would be needed to handle that. Part of the standard recipe for mutating tables...
-- Regards, Frank van Bortel Top-posting is one way to shut me up...Received on Thu Sep 15 2005 - 14:40:26 CDT