首页 > 代码库 > yii 打印sql

yii 打印sql

$query = TableModel::find()->where([‘xxx’=>xxx]);var_dump($query->prepare(\Yii::$app->db->querybuilder)->createCommand()->rawSql);

 

yii 打印sql