Variables (Transact-SQL)

SQL Server provides the following statements to declare and set local variables.

In This Section

Declare @local\_variable

SET @local\_variable

SELECT @local\_variable