📌  相关文章
📜  activerecord yii2 select with limit(start,end) not working - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:19.491000             🧑  作者: Mango

代码示例1
$Query = new Query;
$Query->select(['um.id as USERid', 'um.first_name', 'um.last_name','um.email','COUNT(g.id) as guestCount'])
->from('user_master um')
->join('LEFT JOIN', 'guest g', 'g.user_id = um.id')
->limit(20)
->offset(12)
->groupBy('um.id')
->orderBy(['um.id' => SORT_DESC]);