SELECT INTO TABLE
MySQL Server doesn't yet support the Oracle SQL extension:
SELECT ... INTO TABLE ...
. Instead, MySQL Server supports the
SQL-99 syntax INSERT INTO ... SELECT ...
, which is basically
the same thing. See section 6.4.3.1 INSERT ... SELECT
Syntax.
INSERT INTO tblTemp2 (fldID) SELECT tblTemp1.fldOrder_ID FROM tblTemp1 WHERE tblTemp1.fldOrder_ID > 100;
Alternatively, you can use SELECT INTO OUTFILE...
or
CREATE TABLE ... SELECT
.