Set Variables « Transact SQL « SQL Server / T-SQL






1.Using SET to Assign Variables
2.Assign value to a variable
3.Set value from select statement to a variable
4.Assign value returned from a aggregate function to a variable with set statement