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

前端 未结 5 767
长发绾君心
长发绾君心 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条回答
  •  Happy的楠姐
    2020-12-05 09:53

    They normally prefix temporary tables.

    From the docs....

    Prefix local temporary table names with single number sign (#table_name), and prefix global temporary table names with a double number sign (##table_name).

提交回复
热议问题