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 -> Trouble with Triggers

Trouble with Triggers

From: Schrödinger's Cat <72446.2772_at_compuserve.com>
Date: Tue, 15 Oct 2002 04:51:00 GMT
Message-ID: <e9Nq9.4573$Te7.2192741534@twister1.starband.net>


I have Oracle 9i running on a Windows machine. I have a an application that talks to Oracle through the OCI. In the course of processing I update a row in a table. So far so good.

I recently created a trigger on the table:

TriggerStats after update on Trade for each row begin

    update Trade set column1 = column3 - column2;

The table updates correctly when the trigger is disabled Of course column3 is not properly set, then.

BUT The update does not occur when the trigger is enabled. Obviously column3 is not updated either.

What am I doing wrong? Received on Mon Oct 14 2002 - 23:51:00 CDT

Original text of this message

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