企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
## count 与 distinct 联合使用 ~~~ $onlineNum = BraceletInformation::where($where)->distinct()->recycle()->count('uid'); ~~~ 上面的SQL语句为: ``` select count(distinct `uid`) as aggregate from `my8_bracelet_information` where (`date` = 20140428 and `business_id` = 1) and `is_recycle` = 0 ```