mongo 去除指定字段值重复的数据

mongodb 中 distinct 的做用是:获取集合中指定字段的不重复值,并以数组的形式返回mongodb 语法:数据库 db.collection_name.distinct(field,query,options) field——指定要返回的字段(String)数组 query——条件查询(document).net options——其余选项(document)code   例如:blo
相关文章
相关标签/搜索