#### 1.7.2.1 SELECT INTO TABLE Differences

[]()

 MySQL Server doesn't support the `SELECT ... INTO TABLE` Sybase SQL extension. Instead, MySQL Server supports the [`INSERT INTO ... SELECT`](insert-select.html) standard SQL syntax, which is basically the same thing. See [Section 13.2.6.1, “INSERT ... SELECT Statement”](insert-select.html). 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`](select-into.html) or [`CREATE TABLE ... SELECT`](create-table.html).

 You can use [`SELECT ... INTO`](select.html) 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 Statement”](select-into.html).

