MySQL 8.0 Release Notes
MySQL 8.0 Source Code Documentation
Pre-General Availability Draft: 2017-07-17
MySQL Server doesn't support the SELECT ... INTO
TABLE Sybase SQL extension. Instead, MySQL Server
supports the
INSERT INTO ...
SELECT standard SQL syntax, which is basically the
same thing. See Section 13.2.6.1, “INSERT ... SELECT Syntax”. For example:
INSERT INTO tbl_temp2 (fld_id)
SELECT tbl_temp1.fld_order_id
FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;
Alternatively, you can use
SELECT ... INTO
OUTFILE or
CREATE TABLE ...
SELECT.
You can use SELECT ...
INTO with user-defined variables. The same syntax
can also be used inside stored routines using cursors and
local variables. See Section 13.2.10.1, “SELECT ... INTO Syntax”.
It is correct to say that the MySql CREATE TABLE ... SELECT statement is basically the same as the Sybase SELECT ... INTO TABLE statement.
Microsoft SQL Server also supports SELECT ... INTO TABLE.
INSERT INTO `table2` SELECT * FROM `table1`;
create table mynewtable (select * from myoldtable)
According to this situation, CREATE ... SELECT command of MySQL is somehow better and more complete than the SELECT INTO syntax.