mongodb的數據庫分頁

limit()和skip();
跳過前5條數據再查詢10條數據

db.student.fing().limit(10).skip(5);

如何得到數據庫的數據總數
db.student.stats().count

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章