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

后端 未结 1 802
无人共我
无人共我 2021-01-06 02:04

Hi What is the difference between

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

Thank you

相关标签:
1条回答
  • 2021-01-06 02:48

    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.

    0 讨论(0)
提交回复
热议问题