これは多くのSQLダンプツールが行うことです:
LOCK TABLES foo WRITE;
ALTER TABLE foo DISABLE KEYS;
INSERT INTO foo (foo_id, foo_name) VALUES (1, 'One'),
(2, 'Two'),
(3, 'Three');
ALTER TABLE foo ENABLE KEYS;
UNLOCK TABLES;
これは多くのSQLダンプツールが行うことです:
LOCK TABLES foo WRITE;
ALTER TABLE foo DISABLE KEYS;
INSERT INTO foo (foo_id, foo_name) VALUES (1, 'One'),
(2, 'Two'),
(3, 'Three');
ALTER TABLE foo ENABLE KEYS;
UNLOCK TABLES;