MySQL批量插入百萬條數據

這是個面試題,個人第一想法是foreach 一條條插入。涼涼!!!php 1.建庫建表million_data  test 字段 id name timemysql 2.因爲單條循環插入確定沒有拼接一條sql語句快的,因此直接拼接一條,運行 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocat
相關文章
相關標籤/搜索