
oracle触发器
iteye_18341
这个作者很懒,什么都没留下…
展开
-
确认数据(涨后的薪水不能少于涨前的薪水
/*确认数据(涨后的薪水不能少于涨前的薪水)*/create or replace trigger checksalbefore updateon empfor each rowbegin if :new.sal < : old.sal then raise_application_error(-20001,'涨后的薪水不能少于涨前的薪水.涨前:'|...原创 2014-06-30 16:53:44 · 140 阅读 · 0 评论 -
限制非工作时间向数据库插入(emp)数据-实施复杂的安全性检查
/*实施复杂的安全性检查限制非工作时间向数据库插入(emp)数据:周末: to_char(sysdate,'day') in ('星期六','星期日')上班前,下班后:to_number(to_char(sysdate,'hh24')) not between 9 and 18*/create or replace trigger securityEmpbefo...原创 2014-06-30 16:54:48 · 209 阅读 · 0 评论