yii2查看SQL命令

 

 查看sql:

$data->createCommand()->getRawSql()

 

 结果

posted @ 2020-09-01 09:57  敬芝  阅读(542)  评论(0编辑  收藏  举报