Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
$user = Db::name('adver')->order('sort desc,id desc')->select();
$user = Db::name('shop')->limit(0,5)->select()->toArray();
$user = Db::name('shop')->limit(5,5)->select()->toArray();
$user = Db::name('shop')->page(2,5)->select()->toArray();
$user = Db::name('shop') ->field('id,title,img,old_price,price')
->where('id','>=',6)
->order('id desc')
->select()
->toArray();
$user = Db::name('shop') ->field('id,title,img,old_price,price')
->where('id','>=',6)
->order('id desc')
->count();
$user = Db::name('order')
->where('status','>=',2)
->sum('sj_price');
print_r($user);