MongoDB中distinct的详细用法

做用:获取集合中指定字段的不重复值,并以数组的形式返回数组 语法:spa db.collection_name.distinct(field,query,options)string   field -----指定要返回的字段(string)it query-----条件查询(document)io options-----其余的选项(document)语法   optionsim     { c
相关文章
相关标签/搜索