Das machen viele SQL-Dump-Tools:
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;
Das machen viele SQL-Dump-Tools:
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;