MySQL efficiently copy all records from one table to another
问题 Is there a more-efficent, less laborious way of copying all records from one table to another that doing this: INSERT INTO product_backup SELECT * FROM product Typically, the product table will hold around 50,000 records. Both tables are identical in structure and have 31 columns in them. I'd like to point out this is not my database design, I have inherited a legacy system. 回答1: There's just one thing you're missing. Especially, if you're using InnoDB, is you want to explicitly add an ORDER