I´d like to SELECT a single value into a variable. I´d tried to following:
DECLARE myvar INT(4);
-- immediately returns some syntax error.<
It is worth noting that despite the fact that you can SELECT INTO global variables like:
SELECT INTO
SELECT ... INTO @XYZ ...
You can NOT use FETCH INTO global variables like:
FETCH INTO
FETCH ... INTO @XYZ
Looks like it's not a bug. I hope it will be helpful to someone...