标签: sql activerecord yii
我有一个SQL查询,效果很好,但我不知道如何在Yii Active Record中编写正确的标准。
SELECT `id`, `type`, `params` FROM ( SELECT * FROM `job_queue` ORDER BY `time` ASC ) AS `job_ordered` GROUP BY `type`;