Fill a table from one to another

I would like to copy data from an existing table say table1 to a new table table2. Table engines are different. I mean, the existing table uses MyISAM, and the new one uses Innodb.

+3
source share
2 answers

insert into NewTable (col1, col2, col3) select col1, col2, col3 from OldTable

+7
source

INSERT INTO newtable SELECT * FROM oldtable;

INSERT SELECT

+5
source

Source: https://habr.com/ru/post/1752272/


All Articles