mongoDB 学习笔记(四)数据库命令、固定集合、GridFS文件系统

Count+Distinct+Group Count关键字:请查询persons中美国学生的人数。 db.persons.find({country:"USA"}).count() Distinct关键字: 请查询出persons中一共有多少个国家分别是什么。 db.runCommand({distinct:"persons",key:"country"}).values Group关键字:请查出
相关文章
相关标签/搜索