The following works as expected when there is a single value stored in a variable.
SET @a := \"20100630\";
SELECT * FROM wordbase WHERE verified = @a;
>
Something like this should work. Is it ok to use prepared statements to create temporary tables like this?
SET @a := "'20100630', '20100701'";
SET @sql = CONCAT('create temporary table pn1 SELECT * FROM wordbase WHERE verified IN (', @a, ')');
PREPARE stmt FROM @sql;
EXECUTE stmt;
select * from pn1;