如何为MongoDB集合中的所有文档选择单个字段?
name
roll
{ "_id" : ObjectId("53d9feff55d6b4dd1171dd9e"), "name" : "Swati", "roll" : "80",}
roll
SELECT roll FROM student
WHERE
db.students.find({ "roll": { $gt: 70 })
SELECT * FROM student WHERE roll > 70
慕标5832272
qq_花开花谢_0
Smart猫小萌
相关分类