mysql大量插入数据_MySQL
来源:动视网
责编:小采
时间:2020-11-09 19:24:42
mysql大量插入数据_MySQL
mysql大量插入数据_MySQL:1, 后台运行 ignore_user_abort(); set_time_limit(5*60); 2. 分组提交 TRUNCATE TABLE t_integer; INSERT t_integer (test_id, test_value) VALUES (1, 1234), (2, 1234), (3, 1234),
导读mysql大量插入数据_MySQL:1, 后台运行 ignore_user_abort(); set_time_limit(5*60); 2. 分组提交 TRUNCATE TABLE t_integer; INSERT t_integer (test_id, test_value) VALUES (1, 1234), (2, 1234), (3, 1234),

1, 后台运行
ignore_user_abort();
set_time_limit(5*60);
2. 分组提交
TRUNCATE TABLE t_integer;
INSERT t_integer (test_id, test_value)
VALUES (1, 1234),
(2, 1234),
(3, 1234),
(4, 1234),
(5, 1234),
(6, 1234),
... ...
(9997, 1234),
(9998, 1234),
(9999, 1234),
(10000, 1234);
mysql大量插入数据_MySQL
mysql大量插入数据_MySQL:1, 后台运行 ignore_user_abort(); set_time_limit(5*60); 2. 分组提交 TRUNCATE TABLE t_integer; INSERT t_integer (test_id, test_value) VALUES (1, 1234), (2, 1234), (3, 1234),