Yii 模型如何使用 having?
$q->select('count(id) as count')->groupBy('score')->having(['>','count',100]); $q->having(['>','score',100])
having 是对结果集的二次筛选。区别于where,where是对数据的筛选.