1.DML触发器
//例子 create or replace trigger dml_log before delete or insert or update on department for each row begin if inserting then ... elsif deleting then... else ... end if end //限定条件的行集触发器 create or replace trigger dml_log before update of salary on department for each row when(new.job='管理员' AND (ABS(NEW.salary-old.salary)>200))) declare v_no number; begin select count(*) into v_no from logs2; end原文链接:https://www.f2er.com/oracle/208345.html