thinkphp5查询某一行多个字段的值

来源:互联网 发布:淘宝虚拟物品店铺 编辑:程序博客网 时间:2024/06/05 15:45
$result=Db::name('app')->where('appID','AAABBBCCCDDD')->field('appName,appSecret')->find(); return $result;
在find前加上field即可。
0 0
原创粉丝点击