-- 涨后的工资不能少于涨前的工资 create or replace trigger checksal before update on emp for each row begin -- if 涨后的薪水 < 涨前的薪水 then if :new.sal < :old.sal then raise_application_error( - 20002 , ‘ 涨后的工资不能少于涨前的工资.涨后: ‘ || :new.sal || ‘ 涨前: ‘ || :old.sal); end if ; end ; /
PL/SQL&存储过程||存储函数&触发器
标签:
查看更多关于PL/SQL&存储过程||存储函数&触发器的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did119098