使用 SET 更新變數

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

1

使用 SET,你一次只能更新一個變數。