Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1350474
  • 博文数量: 205
  • 博客积分: 6732
  • 博客等级: 准将
  • 技术积分: 2835
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-04 17:59
文章分类

全部博文(205)

文章存档

2016年(1)

2015年(10)

2014年(1)

2013年(39)

2012年(23)

2011年(27)

2010年(21)

2009年(55)

2008年(28)

我的朋友

分类: Oracle

2009-04-23 17:08:20

create or replace trigger TRIG_Resources_Update
after update of state
ON Resources
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW
begin
       if(:OLD.state=1 and :NEW.state=2 and :OLD.catalogid=18235) then
                delete from policy where policy.id = :NEW.sourceid; 
       end if;
end;
阅读(760) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~