When creating an event, why do I get Undeclared variable: voteType
when I add a second column to the select sql? Is it not possible to specify a second column in the sql statement? What's the right way to do this?
BEGIN
DECLARE c VARCHAR(2);
DECLARE vElm INT(10);
DECLARE vType TINYINT(1);
select distinct(country) into c from votes;
select votedElm into vElm, voteType into vType from votes where country = c;
END