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 |
|
SimonGough
Starting Member
23 Posts |
Posted - 2002-02-21 : 07:26:25
|
| Hi,I have a select statement which is pulling out multiple columns from a group of tables (which are joined)How do i make a variable equal to one of those columns?Thanks,Simon |
|
|
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts |
Posted - 2002-02-21 : 07:42:49
|
| HiYou can do Select @blah = blah, @foo = bar FROM TableBut you can not combine a variable assignment and a select in the same statement i.e.Select blah, @foo = bar FROM TableHope that helps.DamianEdited by - merkin on 02/21/2002 07:45:20 |
 |
|
|
|
|
|