开发者

T- SQL usage of @$

开发者 https://www.devze.com 2023-04-10 05:18 出处:网络
I joined this new project and found a different way of declaring local vars in SQL Server Stored Procedures as

I joined this new project and found a different way of declaring local vars in SQL Server Stored Procedures as

DECLARE @$prog VARCHAR(50),
        @$errno INT

I have always used @ to declare local variables in T-SQL, wondering when to use @$?

Please guide开发者_如何学运维.


This has no special meaning, the $-sign just happens to be legal inside an identifier. See the MSDN page on identifiers.

0

精彩评论

暂无评论...
验证码 换一张
取 消