Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Trigger : Newbie problem

Trigger : Newbie problem

From: Daniel <dsancho_at_adour-bureau.fr>
Date: Thu, 14 Jan 1999 11:02:35 +0100
Message-ID: <77kf95$eln$1@platane.wanadoo.fr>


Hi,

How to implement a trigger before delete who updates records of the same table ?
I've tried :

(trigger COMPTE.TBS_DELETECOMPTE before delete)

begin

   update compte set cpt_parent = :old.cpt_parent    where cpt_parent = :old.cpt_code and cpt_annee=:old.cpt_annee; end;

But It doesn't work. (ORA-04091 - ORA04088).

TIA Received on Thu Jan 14 1999 - 04:02:35 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US