having
having :having条件
having('count(user_id)>10')
$where =new Where();
相当于
$where->where('count(user_id)','>',10);
having($where);
实例:
DB::select('user_event e')->having('count(user_id)>10')->group('begin_day')->findAll();
相当于sql
select * from user_event e having count(user_id)>10 group by begin_day