日常工作中使用的一些Mongodb语句
摘要:1、通过_userID字段查询重复录入内容 > db.template.aggregate({"$group": {_id: "$_userId",count:{"$sum":1}}},{$sort:{count:-1}}) 2、查询 db.template.find({"group_7ee1247ab7194482b86f82db556d8580.sex":"\b男"}).pretty() ...
阅读全文
posted @ 2016-10-27 15:42
浙公网安备 33010602011771号