which one is the fastest way to completely copy a table on mysql ?
CREATE TABLE copy LIKE original;
INSERT INTO copy SELECT * FROM original;
or
CREATE TABLE copy SELECT * FROM original;
ALTER TABLE copy ADD PRIMARY KEY (id);
or theres another way ?
EDIT: I'm worried about the indexes being re-created, how does mysql proceed executing these statements ?
PS. can't use command-line tools like mysqldump, must be on-the-fly.