博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【MongoDB】The high query operation of MongoDB(三)
阅读量:4169 次
发布时间:2019-05-26

本文共 590 字,大约阅读时间需要 1 分钟。

1, Sort 

Needless to say, mongodb also support to sort data. THe positive one means sorting by asc order and negetive means by desc.

2. Group

The grammar of group:

Description Of Argument:

key: The field need to group 

cond: query condition 

Initial: initialize the counter of group

Redue: generally statistic operation

Finalize: further operation after group, for exampe calcuate the average. 

3.

3. Distinct

it's the same as the distinct in the relational database.

4. page

The mongodb supports to use skip and limit to query by page.

5. Cursors and Cursor Methods

6. $query/$orderby/$explain

你可能感兴趣的文章
DSS 搭建手机流媒体服务器
查看>>
在Android中实现全屏显示的方法
查看>>
Toast和Handler的间隔使用
查看>>
Android获取状态栏和标题栏的高度
查看>>
android中GPS信息的获取
查看>>
条码算法学习
查看>>
VS快捷键
查看>>
Handler使用入门
查看>>
windowbuilder7.6下载 windowbuilder注册机 windowbuilder8.0
查看>>
sql server2003的下载地址
查看>>
android 线程
查看>>
OpenCV的配置
查看>>
在VS2005上配置Opencv问题集锦
查看>>
关于Android 中的Context
查看>>
《笔记》孙鑫老师MFC第一讲(windows程序内部运行原理)
查看>>
[转]用iText导出条形码图片(包含条形码)
查看>>
OpenCV中CvFont的定义和操作
查看>>
Android 多点触摸
查看>>
获得spinnar中选中的值
查看>>
初始化HashMap
查看>>