Mongodb數據庫刪除重複數據

具體代碼以下:php db.boss_python.aggregate([ { $group: { _id: {job_id: '$job_id'},count: {$sum: 1},dups: {$addToSet: '$_id'}} }, { $match: {count: {$gt: 1}} } ]).forEach(fun
相關文章
相關標籤/搜索