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 22.214.171.124, “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;
Copyright © 1997, 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices