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

前端 未结 5 756
长发绾君心
长发绾君心 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 10:10

    The other answers are correct if you're dealing with SQL Server, and it's clear that you are. But since the question title just says SQL, I should mention that there are some forms of SQL such as MySQL where a pound sign is used as an alternative commenting symbol.

    #This is a comment.
    

    https://dev.mysql.com/doc/refman/5.7/en/comments.html

提交回复
热议问题