$query = User::find()->where(['id'=>[1,2,3,4])->select(['username']) // 输出SQL语句 $commandQuery = clone $query; echo $commandQuery->createCommand()->getRawSql(); $users = $query->all();
作者:老A
来源:嘻吖仔
原文:http://xiaohewan.com/article/show?id=61
版权声明:本文为作者原创文章,转载请附上文章链接!