create or replace trigger insert_B after insert FOR EACH ROWon Abegin IF :NEW.type = 2 and :NEW.applytype = 11 then insert into B(id,name,type,applytype,result) values(:NEW.id.:NEW.name,:NEW.type,:NEW.applytype,'Y'); END IF;END;/