SELECT INTO in MySQL SELECT INTO in MySQL sql-server sql-server

SELECT INTO in MySQL


Use the CREATE TABLE SELECT syntax.

http://dev.mysql.com/doc/refman/5.0/en/create-table-select.html

CREATE TABLE new_tbl SELECT * FROM orig_tbl;


In MySQL, It should be like this

INSERT INTO this_table_archive (col1, col2, ..., coln)SELECT col1, col2, ..., colnFROM this_tableWHERE entry_date < '2011-01-01 00:00:00';

MySQL Documentation