DavidPike
Programmer
- Oct 9, 2007
- 18
What is the syntax (if any) to set multiple variables from a sengle SELECT statement in a stored procedure. For instance, I might:
@WorkVar = (SELECT columnX FROM tableX WHERE condition)
and get a single variable filled. Is there a syntax for bringing back multiple columns into multiple variables with a single SELECT statement? Without using a CURSOR?
@WorkVar = (SELECT columnX FROM tableX WHERE condition)
and get a single variable filled. Is there a syntax for bringing back multiple columns into multiple variables with a single SELECT statement? Without using a CURSOR?