oracle中删除一个表的记录的同时,保存到另一个表的触发器

create or replace trigger delete_SXCLGC_tri
  after delete on winf_sv_ex_hybs_sxclgc
  for each row   
    DECLARE  
     
    begin
         insert into WINF_SV_EDITORIAL_DELETE(
         SXBM,XH,HJBH,HJFZRXM,
         HJFZRSJ,HJFZRZWDM,HJFZRZWMC,HJMC,
         FZRSZBM,FZRSZBMZZJGDM,UNIT,ISSTARTESPECIALLYPROCEDURE,
         TIMELIMIT,ESPECIALLYPROCEDURETYPE,TBCXTIMELIMIT,QSBMZZJGDM)  
        values(
        :old.sxbm,:old.XH,:old.HJBH,:old.HJFZRXM,
        :old.HJFZRSJ,:old.HJFZRZWDM,:old.HJFZRZWMC,:old.HJMC,
        :old.FZRSZBM,:old.FZRSZBMZZJGDM,:old.UNIT,:old.ISSTARTESPECIALLYPROCEDURE,
        :old.TIMELIMIT,:old.ESPECIALLYPROCEDURETYPE,:old.TBCXTIMELIMIT,:old.QSBMZZJGDM);
        
end delete_SXCLGC_tri;

你可能感兴趣的:(触发器)