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;
/
This trigger is giving mutating error, please help to fix it.