SqlServer-INSTEAD OF INSERT触发器

Create TRIGGER [dbo].[TRIGGER_dms_rtdb_bjlx] ON [dbo].[dms_rtdb_bjlx] Instead Of INSERT AS BEGIN set nocount on delete dms_rtdb_bjlx where tableno=(SELECT top 1 tableno FROM inserted) insert into dms_rtdb_bjlx SELECT * FROM inserted END

posted on 2009-06-29 15:40  highmayor  阅读(420)  评论(0编辑  收藏  举报

导航