MongoDB笔记十一——count+Distinct+Group
1、count()
查询出国籍是美国的学生人数



2、Distinct()
查询出都有哪些国家的学生
db.runCommond({distinct:"persons",key:"country"}).values

本文题目:MongoDB笔记十一——count+Distinct+Group
转载来源:http://www.fbiktj.com/article/jiiico.html


咨询
建站咨询
