I am having a query, which I kept inside a variable, Its working fine when only one result is available, for more than one results, its showing below error
#1242 - Subquery returns more than 1 row.
Can anyone tell me, how to get multiple result set in a MySQL variable
My query is
SET @v1 = (SELECT id FROM `employee` where DATE_ADD(last_active_date, INTERVAL 1 DAY) AND DATE_ADD(last_active_date, INTERVAL 1 DAY)=CURRENT_DATE AND employee_group!=3);
SELECT @v1;