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;
/
这个触发器给出了变异错误,请帮助修复它。