我想更新当前行而不是所有行。我在做我可以使用变量设置更新集的值吗?我做错了程序。请帮忙。
CREATE TRIGGER changeActive
ON offer_plans
AFTER UPDATE AS
BEGIN
DECLARE @a INT;
UPDATE offer_plans SET is_active = @a //Here I want to update the current updating row.
CASE
WHEN is_active = 0 THEN @a = 1
WHEN is_active = 1 THEN @a = 0
END
END
GO