Pre-General Availability Draft: 2017-09-22
MySQL Server doesn't support the
SELECT ... INTO
TABLE Sybase SQL extension. Instead, MySQL Server
INSERT INTO ...
SELECT standard SQL syntax, which is basically the
same thing. See Section 18.104.22.168, “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;