yii2打印sql的方法:首先通过语句“Article::find()->joinWith('articleClass');”查询结构;接着调用createComment和getSql方法;最后通过“var_dump”打印出来即可。
2020-07-21评论:0访问次数:992