Mutating table error
Date: 17 Feb 2004 11:42:11 -0800
Message-ID: <c7b3da1b.0402171142.639944cb_at_posting.google.com>
Hello,
I have a very simple table, and want to create a trigger that updates
the date column entry (with the current date), whenever a row gets
modified.
create table mvkTest
insert into mvkTest
update mvkTest
=======>>>>>>
Is there a simple way of fixing this, or would I have to create 3
extra triggers, a package, etc., as described in most posts about
mutating table errors?
Could you please explain to me WHY this error happens here (I have not
been able to find a clear explanation of what causes them)?
(bukva char(5),
kogda date);
values('aaa', sysdate);
insert into mvkTest
values('bbb', sysdate);
set bukva = 'ccc'
where bukva = 'aaa';
update mvkTest
*
ERROR at line 1:
ORA-04091: table DTI.MVKTEST is mutating, trigger/function may not see
it
ORA-06512: at "DTI.TEST_TRIGGER", line 1
ORA-04088: error during execution of trigger 'DTI.TEST_TRIGGER'
Thank you,
G.
Received on Tue Feb 17 2004 - 20:42:11 CET