$query = User::find()->where(['id'=>[1,2,3,4])->select(['username']) // 输出SQL语句 $commandQuery = clone $query; echo $commandQuery->createCommand()->getRawSql(); $users = $query->all();
2020 © psd1403.com | 备案/许可证号: 辽ICP备18003080号-1 | 友情连接: _A Kai