I have tried a few tutorials but I do not think there is any expectation on how to declare the variable in select by MySQL,
DECLARE @idPedido INT;
DECLARE @idCombo INT;
SELECT @idPedido = idPedido, @idCombo = idCombo
FROM Pedidos
WHERE idCombo IS NOT NULL;
SELECT @idPedido;
SELECT @idCombo;