$chunk = array_chunk($data, 100)
print_r($chunk)
也可以每次查询 100 条
$start = 0while($data = select * from table limit $start, 100)
{
print_r($chunk)
$start += 100
}
for($i=0$i<1000$i=$+100){"SELECT * FROM tbl_name ORDER BY key_id DESC LIMIT {$i},{$i+100}"
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)