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

【MongoDB】The high query operation of MongoDB(二)

时间:2022-03-14 00:06

In the last blog, there are three query condition to be described. In the blog, we will continue to what we have leant in the last blog. 

1 $mod 

‘$mod‘ operation is able to make us to do simple mod operation, but is no need to use where sentence. 

gxlsystem.com,布布扣\

2. $ne, $in, $nin

‘$ne’ means not equal. ‘$in‘ is same as key word ‘in‘ in relationship. $nin is opsitive to ‘in‘

gxlsystem.com,布布扣

3.$or and $nor 

durning the mutiple conditions, then result will be return that it only matches one condition among condition. 

as for $noe, which is in contrast with $no, let‘s learn it from the following the picture. 

gxlsystem.com,布布扣

4. $size

$size operation will query result whose size is equailvant to size of input.

gxlsystem.com,布布扣

5. $where 

gxlsystem.com,布布扣


6. $type

$type will find the data according the type of bson field. For example: gxlsystem.com,布布扣

The following picture is the type of bson type. 
gxlsystem.com,布布扣


热门排行

今日推荐

热门手游