I want to assign multiple variables using a single select statement. For example:
DECLARE @var1 varchar(10)
DECLARE @var2 varchar(10)
SELECT col1, col2 into @var1, @var2 from table where....
Can you do this sort of thing in 1 statement? What's the quickest way without resorting to loops, cursors, or temp tables?
cheers