Quantcast
Channel: Answers for "Sql Server - Difference between @id and @@id"
Viewing all articles
Browse latest Browse all 4

Answer by Matt Whitfield

$
0
0

There is no difference. The rules for variables state that they start with an '@' character and follow the rules for identifiers.

Since '@' is a valid identifier character, you can have as many as you like at the start of your variable name. However, if you match a system function which has the same name as your variable, then the query will not compile.


Viewing all articles
Browse latest Browse all 4

Trending Articles