0
CREATE OR REPLACE TRIGGER Testtriger
after insert ON table2 referencing new as new old as old
for each row
declare
flagtemp varchar2(1);
begin
select flag into flagtemp from table2 where docid = :new.docid;
--if :new.cardtypeflag = 'T' then
update table1 set col1 = 'F' , col2= 'T', inactive = 'T', col3 = 'T'
where tabid = :new.docid;
--end if;
end;
/
此觸發器給出了突變錯誤,請幫助解決它。Oracle觸發器重合錯誤
http://dba.stackexchange.com/questions/5432/what-are-the-causes-and-solutions-for-mutating-table-errors – GurV
[ORACLE可能重複更新後觸發器:解決ORA-04091突變表錯誤](http://stackoverflow.com/questions/6915325/oracle-after-update-trigger-solving-ora-04091-mutating-table-error) –