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

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle Triggers

Re: Oracle Triggers

From: Terry Dykstra [TeamPS] <no_spam_tdykstra_at_cfol.ab.ca>
Date: Thu, 4 Jun 1998 12:52:17 -0600
Message-ID: <3576ec5e.0@news.cadvision.com>


Yes, you can. Most likely you will get a 'mutating table' error when you do the insert in the same trigger as the update. To get around that, you defer the insert into an 'after update' trigger. You will need a package in the trigger to 'hide' the insert from Oracle.

--
Terry Dykstra [TeamPS]
Canadian Forest Oil Ltd.
GlennThames_at_my-dejanews.com wrote in message <6l6nji$rgs$1_at_nnrp1.dejanews.com>...
>I am writing an update Trigger and need to insert a row into the same table
>that initiated the trigger. Can I do this in Oracle? If I can, How?
Thanks.
>
>-----== Posted via Deja News, The Leader in Internet Discussion ==-----
>http://www.dejanews.com/ Now offering spam-free web-based newsreading
Received on Thu Jun 04 1998 - 13:52:17 CDT

Original text of this message

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