MongoDB 清除重复数据

建立惟一索引并删除重复的数据html coll.ensureIndex({productid:1}) // 在productid上创建普通索引 coll.ensureIndex({district:1, plate:1}) // 多字段索引 coll.ensureIndex({productid:1}, {unique:true}) // 惟一索引 coll.ensureIndex({produc
相关文章
相关标签/搜索