2

I am getting some errors when trying to create a parameter for s stored procedure in SQL 2008 where parameter name has the symbol & in the name.

What is the correct syntax for something like @Column&Title?

Have tried @[Column&Title] but it doesn't work.

4

1 回答 1

5

与号不是在变量名中使用的有效字符。

http://msdn.microsoft.com/en-us/library/ms175874.aspx

于 2013-06-22T14:23:29.843 回答