Model::find()->createCommand()->getRawSql();或者$model->find()->createCommand()->getRawSql();PHP中文网,有大量免费的Yii入门教程,欢迎大家学习!