Haim Evgi
Haim Evgi

Reputation: 125604

Copy a MySQL table including indexes

I can copy a MySQL table to create a new table:

CREATE TABLE newtable SELECT * FROM oldtable

This works, but the indexes are not copied to the new table. How can I copy a table including the indexes?

Upvotes: 66

Views: 34614

Answers (0)

Related Questions