mysql 大量插入數據

1, 後臺運行 spa

ignore_user_abort();
set_time_limit(5*60);

it

2. 分組提交 test

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); 
相關文章
相關標籤/搜索