新聞中心
這里有您想知道的互聯(lián)網營銷解決方案
MongoDB筆記十一——count+Distinct+Group
1、count()
查詢出國籍是美國的學生人數



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

網站名稱:MongoDB筆記十一——count+Distinct+Group
URL分享:http://www.ef60e0e.cn/article/jiiico.html