2015-01-31 SQLServer(MSSQL)で変数宣言。 毎回忘れてしまうのでメモ。DECLARE @p int = -1 SELECT * FROM Products WHERE Code = @pDECLARE @local_variable (Transact-SQL)