Question

I am trying to populate my vars the following way.
Obviously, I am doing something wrong.

...

BEGIN
  DECLARE p_f1,p_f2 INT;
  SELECT
          f1 INTO p_f1,
          f2 INTO p_f2
  FROM
          t1
  LIMIT 1;
END

What is the proper syntax to populate p_f1 and p_f2?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top