lang/php

Yii model get query

C/H 2017. 8. 25. 04:41

$query = new Books::find()->where('author=2');
echo $query->createCommand()->sql;

$query->createCommand()->getRawSql()


반응형

'lang > php' 카테고리의 다른 글

php log file write speed  (0) 2018.04.20
Ubuntu php7.1/7.2 Switch  (0) 2018.03.02
PHP math-php  (0) 2017.06.01
php7.1 Catching Multiple Exception Types  (0) 2017.05.31
brew php-xdebug  (0) 2017.05.29