$M_copy = M('member');
$M_F = M('member')->order('uid desc')->limit(0, 1)->getField('uid');
$totalSelectCount = $M_F; // 总查询量
$perSelectCount = 100;
$index = 0;
//循环
while ($totalSelectCount > $index) {
//两个数得到最小的一个
$selectCount = min($totalSelectCount, $index + $perSelectCount);
//取2个数之间的所有数
$where['uid'] = array('between', array($index, $selectCount));
//查询我需要执行的字段
$list_copy = $M_copy->field('uid,pid,spid,sspid,pids')->where($where)->select();
//从执行结束的最大值的地方,在执行一次
$index += $perSelectCount;
}