mongodb查询如何能把所有结果查询出来

2025-04-30 01:05:01
推荐回答(1个)
回答1:

var c = db.somecollection.find();
while(c.hasNext()){
var one_data = c.next();
//...

}