摘要: 1):查询重复数据 db.getCollection('users').aggregate([ { $group: { _id : '$goodsId', count: { $sum : 1 } } }, { $match: { count: { $gt : 1} } } ]) 2):Mongodb 阅读全文
posted @ 2020-05-15 21:57 coding++ 阅读(235) 评论(0) 推荐(0) 编辑