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

前端 未结 1 1615
粉色の甜心
粉色の甜心 2021-01-06 01:56

Hi What is the difference between

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

Thank you

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

    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)
提交回复
热议问题