时间:2021-07-01 10:21:17 帮助过:12人阅读
$query = Order::find()->select([‘order_sys_id‘])->where([‘order_car_id‘=>‘AA‘,‘order_status‘=>‘10‘])->orderBy([‘create_time‘=>SORT_DESC]);
$commandQuery = clone $query;
echo $commandQuery->createCommand()->getRawSql();
YII - 打印 SQL
标签:sort sql erb find stat orderby sys where man