Hi my problem is real simple. I want to give 2 Varibles values from one SELECT query
Here a exampel.
I dont want to use 2 diffrent selects is there any way to do something like this
The , doesn't work but you get the idea.
Here a exampel.
Code:
DECLARE @test1 int , @test2 int; SET @test1=SELECT a FROM Table_T SET @test2=SELECT b FROM Table_T
Code:
DECLARE @test1 int , @test2 int; SET @test1 , @test2=SELECT a , b FROM Table_T
Comment