2017-05-10 74 views

回答

0

試試這個:

\Yii::app() 
    ->db 
    ->createCommand(
     "SELECT * FROM (
     SELECT * 
     FROM `servicelist` `t` 
     WHERE t.is_accept_by_driver = 0) as tmp GROUP BY servicenumber" 
    ) 
    ->queryAll() 
相關問題