您的位置:首页 > 博客中心 > 数据库 >

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

时间:2022-03-14 00:06

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.

gxlsystem.com,布布扣

Condition Expression 

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

gxlsystem.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. 

gxlsystem.com,布布扣

3. $exists

$exists operation check whether one field exists.

gxlsystem.com,布布扣



热门排行

今日推荐

热门手游