摘要: db.collection.aggregate([ { $group:{ "_id": "$city", "unique_count": { $addToSet: "$zipcode" } } }, { $project:{ "distinct_zipcodes":{ $size: "$unique 阅读全文
posted @ 2022-10-26 13:54 空虚公子 阅读(634) 评论(0) 推荐(0)