您的位置:首页 > 数据库 > Mongodb

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

2014-09-21 23:19 351 查看
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.



Condition Expression

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



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.



3. $exists

$exists operation check whether one field exists.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: