單項(xiàng)選擇題MongoDB中,可以使用skip+limit實(shí)現(xiàn)分頁(yè)功能,如果10條/頁(yè),則用于查詢第5頁(yè)數(shù)據(jù)的語(yǔ)句為()。
A.db.stus.find().limit(50)
B.db.stus.find().skip(40).limit(10)
C.db.stus.find().skip(10).limit(40)
D.db.stus.find().skip(50)
您可能感興趣的試卷
你可能感興趣的試題
1.單項(xiàng)選擇題MongoDB中,如何刪除名為stus的集合?()
A.db.stus.drop()
B.db.dropCollection(’stus’)
C.db.stus.remove()
D.db.removeCollection(’stus’)
2.單項(xiàng)選擇題創(chuàng)建MongoDB地理位置索引語(yǔ)法正確的是()。
A.db.集合名.createIndex({key :"2d"})
B.db.集合名.createIndex({key :"2D"})
C.db.集合名.createIndex({key :"3d"})
D.db.集合名.createIndex({key :"3D"})