$result=Db::name('app')
->where('appID','AAABBBCCCDDD')
->field('appName,appSecret')
->find();
return $result;
在find前加上field即可。
thinkphp5查询某一行多个字段的值
最新推荐文章于 2021-07-22 12:21:03 发布
$result=Db::name('app')
->where('appID','AAABBBCCCDDD')
->field('appName,appSecret')
->find();
return $result;
在find前加上field即可。