4
在mongodb shell中,我想檢索查詢的下一個元素。mongodb shell裏面如何檢索下一個結果?
cursor = db.collection.find({ok: true});
現在,我看到20個結果。
我希望看到下一個結果。
在mongodb shell中,我想檢索查詢的下一個元素。mongodb shell裏面如何檢索下一個結果?
cursor = db.collection.find({ok: true});
現在,我看到20個結果。
我希望看到下一個結果。
你也可以跳過第一組結果:
db.collection.find({ok: true}).skip(20)
這是非常有用無論shellBatchSize設置。