select into 在mysql中失效的替换办法

select into 语法:将一张表的内容复制到另一张表

SELECT *
INTO newtable [IN externaldb]
FROM table1;

在mysql中这个语法失效,应该用下面的语法:

create temporary table new_table_name (select * from old_table_name);

原文地址:https://www.cnblogs.com/run127/p/5527839.html