028-86922220
建站资讯

网站建设资讯

为你提供网站建设行业资讯、网站优化知识、主机域名邮箱、网站开发常见问题等。

MongoDB笔记十一——count+Distinct+Group

1、count()
查询出国籍是美国的学生人数
MongoDB笔记十一——count+Distinct+Group
2、Distinct()
查询出都有哪些国家的学生
db.runCommond({distinct:"persons",key:"country"}).values
MongoDB笔记十一——count+Distinct+Group

标题名称:MongoDB笔记十一——count+Distinct+Group
路径分享:http://whjierui.cn/article/jiiico.html

其他资讯