Yii2.0 打印 SQL 语句
in PHP with 0 comment, Views is 62

Yii2.0 打印 SQL 语句

in PHP with 0 comment, Views is 62
echo $model = Manager::find() -> asArray() -> createCommand() -> getRawSql();
exit;
$model -> all();

做个笔记,省的再去百度

Responses
选择表情