1390 Prepared statement contains too many placeholders
应该是数据太大了,使用array_chunk
来进行分批数据库操作。代码如下:
foreach (array_chunk($tsim_array,1000) as $t) {
DB::table('test')->insert($t);
}
更多:vien.我爱你
viencoding.com版权所有,允许转载,但转载请注明出处和原文链接: https://viencoding.com/article/79