Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between set @flag =1 and set @@flag = 1

Hi What is the difference between

set @flag=1 and set @@flag = 1 in SQL Server?

Thank you

like image 225
jestges Avatar asked Oct 08 '10 08:10

jestges


1 Answers

Nothing. Some in-built functions have names that start with double at signs @@ as a convention. To avoid confusion it is often recommended that you do not use names that start with @@.

Source: MSDN: Using Identifiers - Rules for Regular Identifiers.

like image 98
Daniel Vassallo Avatar answered Oct 09 '22 05:10

Daniel Vassallo