新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

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://www.wjwzjz.com/article/jiiico.html
在线咨询
服务热线
服务热线:028-86922220
TOP