首页 > 数据库技术 > 详细

【MongoDB】The high Query operation of MongoDB(一)

时间:2014-09-22 00:26:52      阅读:309      评论:0      收藏:0      [点我收藏+]

In the last blog, we talked about the basic operation of MongoDB, including insert, query, remove and update. Now in this blog, we will further hava a good understanding of  querying operation. 

At first, let‘s create 1000 recors for testing. As the following picture depicts.

bubuko.com,布布扣

Condition Expression 

1. <, <=, >, <=  is correspondent to ‘$lt’,‘$Ite‘, ‘$gt‘ and ‘$gte‘

bubuko.com,布布扣

2. $all

This operation is analogous to the $in operation. But the difference is that $all operation requires every elements in the array to be included in the return result. 

bubuko.com,布布扣

3. $exists

$exists operation check whether one field exists.

bubuko.com,布布扣



【MongoDB】The high Query operation of MongoDB(一)

原文:http://blog.csdn.net/sxb0841901116/article/details/39456383

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!