SELECT * INTO `table2` FROM `table` WHERE
报错Undeclared variable
将其改为
CREATE TABLE table2 ( SELECT * FROM table WHERE