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://csdahua.cn/article/jiiico.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流