Model::find()->createCommand()->getRawSql();登入後複製或$model->find()->createCommand()->getRawSql();登入後複製PHP中文網,有大量免費的Yii入門教學,歡迎大家學習!