I explain: It turns out that I have a procedure that establishes two integer parameters, which are then arranged to store each the result of a single value that comes from different columns one for each, the select
that I have is something complex, so I'll leave a rather summarized code, where you can understand what you would like to do if you could:
DECLARE idUsuario INT DEFAULT 0;
DECLARE idRepuesto INT DEFAULT 0;
SELECT us.id_usuario INTO idUsuario, us.id_cidudad INTO idCiudad
FROM usuarios as us
WHERE us.id_usuario = 1;
#Comprobando que se guardo bien
SELECT idUsuario;
SELECT idCiudad;
#Resultado esperado
/* Primer Select
_________
|idUsuario|
-----------
| 1 |
-----------
Segundo Select
_________
|idCiudad|
-----------
| 10 |
-----------
*/
I do not know if it can be done in case of not being able to thank me for clarifying why, thank you.