What does the SQL # symbol mean and how is it used?

前端 未结 5 754
长发绾君心
长发绾君心 2020-12-05 09:28

Can someone please explain to me what the # symbol means in MS SQL Code.

I\'ve tried Googling it, and even searching on StackOverflow,

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 09:48

    The pound sign # is used to prefix temporary tables and procedures. A single instance (#) refers to a temporary object that lives/dies with the current session while a double instance (##) is a global object.

提交回复
热议问题