Answers for "mysql faster insert"

SQL
0

mysql faster insert

CREATE TABLE copy LIKE original;

ALTER TABLE copy DISABLE KEYS;
SET unique_checks=0; SET foreign_key_checks=0; 

INSERT INTO copy SELECT * FROM original;

ALTER TABLE copy ENABLE KEYS;
SET unique_checks=1; SET foreign_key_checks=1;
Posted by: Guest on October-27-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language