I am new to SQL Server, can someone help me what is the significance of @ notation followed by name of variable? Like @OrderId ?
Asked
Active
Viewed 245 times
-1
marc_s
- 704,970
- 168
- 1,303
- 1,425
Jitesh Yadav
- 11
- 2
-
5What has your researched turned up so far? – Newd Jul 21 '15 at 14:58
1 Answers
0
All SQL Server variables are prefixed with @.
@local_variable
Is the name of a variable. Variable names must begin with an at (@) sign. Local variable names must comply with the rules for identifiers.
Curtis
- 98,395
- 62
- 265
- 345