no sé, pero esto funciona, lo uso para asignar SET v_temp2=v_temp1;
-- //////////
DECLARE v_temp1 TEXT;
DECLARE v_temp2 TEXT;
select
group_concat(yourfield separator '|')
INTO
v_temp1
from
table;
SET v_temp2 = v_temp1;
select
field1, field2
from table
where
field1 regexp v_temp2;
-- ///////////