復制代碼 代碼如下:
-- 優化代碼之前的
insert into table(mobile) values (138000000);
insert into table(mobile) values (138000000);
insert into table(mobile) values (138000000);
……
-- 優化之后的
insert into table(mobile) values (138000000), (138000000), (138000000);……
-- 優化之后插入12w數據包括php做數據處理,開銷才 6s 左右。
新聞熱點
疑難解答