sql server如何建判断某值满足条件就不插入该行的触发器

2025-03-17 10:50:30
推荐回答(1个)
回答1:

Create Trigger trtest
On test --在test表中创建触发器
for Update --为什么事件触发
As --事件触发后所要做的事情
DECLARE @a int
SET @a = select a from updated
if (@a=1)
begin
ROLLBACK
end