Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Lionheart
Starting Member
41 Posts |
Posted - 2009-01-23 : 15:53:51
|
I am trying to decifer some code, and I have the following statements in there: -if @Flv andDeclare @NonUse What do the @'s mean?Thx |
|
|
revdnrdy
Posting Yak Master
220 Posts |
Posted - 2009-01-23 : 16:01:15
|
| The @ symbols mean that those are variables.@Flv@NonUseDECLARE @NonUse varchar(20) --Declare the variable NonUseSET @NonUse = 'Hello' --Set the variable @NonUse to 'Hello'PRINT @NonUse --Will print hello to the screen.Really though this is something you could have easily looked up.r&r |
 |
|
|
rohitkumar
Constraint Violating Yak Guru
472 Posts |
Posted - 2009-01-23 : 16:01:42
|
| thats how you define local variabes in T-SQLhttp://msdn.microsoft.com/en-us/library/ms187953.aspx |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-01-24 : 08:50:44
|
| @ also can be used to denote parameters in procedures and user defined functions. Also if in context of xml xpath queries, @ is used to represent attributes inside xml |
 |
|
|
|
|
|