sqlserver创建一个触发器,执行多条插入语句之前,删除该表的所有数据,以下是我写的一个触发器:
createtriggerdelondbo.tinsteadofinsertasdeletefromdbo.tgo...
create trigger del
on dbo.t
instead of insert
as
delete from dbo.t
go 展开
on dbo.t
instead of insert
as
delete from dbo.t
go 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询