Mongdodb查询一个字段有几种值
2016-11-29 本文已影响199人
ZZIXU
如题可以参考官方文档:
https://docs.mongodb.com/manual/reference/command/distinct/
在shell里进行操作
db.collection.distinct(filed)
python + grids
fs.find().distinct(filed)
如题可以参考官方文档:
https://docs.mongodb.com/manual/reference/command/distinct/
在shell里进行操作
db.collection.distinct(filed)
python + grids
fs.find().distinct(filed)