How to store multiple variables from the query in the stored procedure?
For one variable it can be done easily but how to do it if it's more than one for the same query?
declare num1 int;
declare num2 int;
select number1 into num1 from table_a where id = 1;
-- This one is not correct
select number1 into num1, number2 into num2 from table_a where id = 1;
Is there any simple way to do it without using cursor variable?
recordvariable in such cases.