Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

putting values into variables

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
I know this is doable:

select @MyVariable = ColumnName from MyTable where MyId = SomeInteger

Can you do it with multiple outputs? Something like this:

select @MyVariable1, @MyVariable2 = ColumnName1, ColumnName2 from MyTable where MyId = SomeInteger

Thanks!
 
Read this: thread183-1420441

Does that answer your question?

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top