Yeah, i was kinda hoping to avoid using a package and three triggers to do
something so simple. Thank you for your help.
Tyler Clendenin
GSL Solutions
_____
From: Janet Schmitt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 3:06 PM
To: CF-Talk
Subject: Re: Oracle Mutating Table
> > I am having a problem with oracle's mutating table error. All I want to
>do
> > is, ON BEFORE UPDATE, Check the number of rows in the table being
updated.
> > If the number of rows is 0 set the :New.DateZero to the sysdate. Does
> > anyone know a simple way around this?
Tyler -
The FOR EACH ROW in your trigger is causing the problem. You need to write
the row count to a temporary table or a package variable and then use an
AFTER statement trigger. The following Oracle documentation gives more
details about how to fix this problem:
http://download-west.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76939/adg1
3trg.htm#786
Janet.
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- MySQL Question Haggerty, Mike
- RE: MySQL Question Donnie Bachan
- MySQL question Eric Creese
- Re: MySQL question Mark Drew
- OT: Oracle Mutating Table Tyler Clendenin
- Re: Oracle Mutating Table Deanna Schneider
- Re: Oracle Mutating Table Janet Schmitt
- Re: MySQL question Tyler Clendenin
- Re: MySQL question Thomas Chiverton
- Re: MySQL question Mark Drew
- Re: MySQL question Thomas Chiverton
- Re: MySQL question George Abraham
- Re: MySQL question Jochem van Dieten
- Re: MySQL question Daniel Farmer
- RE: MySQL question Eric Creese
- Re: MySQL question Mark Drew
- RE: MySQL question CFDEV
- RE: MySQL question Eric Creese