Home > PHP Framework > YII > How to print sql statements in yii framework

How to print sql statements in yii framework

爱喝马黛茶的安东尼
Release: 2019-12-09 13:40:33
Original
2762 people have browsed it

How to print sql statements in yii framework

Model::find()->createCommand()->getRawSql();
Copy after login

or

$model->find()->createCommand()->getRawSql();
Copy after login

PHP Chinese website has a large number of free Yii introductory tutorials, everyone is welcome to learn!

The above is the detailed content of How to print sql statements in yii framework. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template