1. $query=$sql->where([
  2. 'test_id'=>24,
  3. 'name'=>'小洋'
  4. ]);
  5. //打印sql;
  6. $query->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql;;


04-30 11:21