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

前端 未结 1 601
刺人心
刺人心 2021-01-06 02:10

Hi What is the difference between

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

Thank you

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 02:35

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