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 295 times
-1
marc_s
- 732,580
- 175
- 1,330
- 1,459
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
- 101,612
- 66
- 270
- 352