触发器

alter TRIGGER  trg_HREMP ON HREMP  instead of INSERT,UPDATE,delete as begin

declare @ast int select @ast=9 if(@ast=1) begin insert into HREMP values('000030','6','','','',GETDATE())

select * from inserted

insert into HREMP select * from inserted end select * from inserted end

insert into HREMP values('000031','6','','','',GETDATE())

posted @ 2013-12-18 17:38  Summay  阅读(189)  评论(0编辑  收藏  举报