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: Student: Simple PL/SQL Question

Re: Student: Simple PL/SQL Question

From: Martin Haltmayer <Martin.Haltmayer_at_0800-einwahl.de>
Date: Sat, 28 Apr 2001 22:54:14 +0200
Message-ID: <3AEB2DF6.675031B@0800-einwahl.de>

Hi Kenny,

the difference between invoking a procedure standalone and within a trigger is that within a trigger for each row you cannot refer to a row of the table that just fired the trigger. Neither can you use (= select, insert, update, delete) any of the rows dependent of that table or depending on that table. You will see an inconsistent state of all those tables within your trigger while you will always see a consistent state from within a standalone proc.

The only rows you are allowed to access within a "for each row" trigger are the :new and :old records. This is the reason why your procedure fails (it just won't see any other rows from your table so your "select ... into ..." does not return any data.)

Please do not crosspost any more.

Martin Received on Sat Apr 28 2001 - 15:54:14 CDT

Original text of this message

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