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

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

SELECT *
INTO newtable [IN externaldb]
FROM table1;

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

create temporary table new_table_name (select * from old_table_name);

posted @ 2016-05-25 17:28  run127  Views(422)  Comments(0Edit  收藏  举报