Model::find()->createCommand()->getRawSql();
或者
$model->find()->createCommand()->getRawSql();
上一篇:正确的安装Composer扩展包
下一篇:yii2.0表格排序的方法