Transact-SQL 本機變數是一種物件,可保存特定類型的單一資料值。批次和指令碼中的變數通常的用途為: ... -- Create the table. CREATE TABLE TestTable (cola int, colb char(3)); GO SET NOCOUNT ON; GO -- Declare the variable to be used. DECLARE @MyCounter ...
technet.microsoft.com