SELECT @var_a = a, @var_b = b, @var_c = c FROM xyz
or based on what you want to do , you can use CASE statemt in select:
SELECT CASE WHEN a = some_value1 THEN something1
WHEN a = some_value2 THEN something2
ELSE something3 AS column_name,
b,c
Zhavic
--------------------------------------------------------------- In the 1960s you needed the power of two Comodore64s to get a rocket to the moon. Now you need a machine which is a vast number of times more powerful just to run the most popular GUI.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.