使用 SET 更新变量

DECLARE @VariableName INT
SET @VariableName = 1
PRINT @VariableName

1

使用 SET,你一次只能更新一个变量。