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

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

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. 

\

2. $ne, $in, $nin

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

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. 

4. $size

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

5. $where 

6. $type

$type will find the data according the type of bson field. For example:
The following picture is the type of bson type. 

你可能感兴趣的文章
Comparator接口
查看>>
在二叉树中找到一个节点的后继节点
查看>>
寻找第K大
查看>>
String.trim
查看>>
缓存行 伪共享
查看>>
400 : perceived to be a client error 错误
查看>>
Establishing SSL connection without server's identity verification is not recommended
查看>>
扫描包不存在:pojo类找不到
查看>>
c语言中计算数组长度的方法
查看>>
java 数组定义
查看>>
java中的&和&&的区别
查看>>
Java的位运算符
查看>>
BufferedReader与Scanner的区别
查看>>
java String于常量池中的介绍
查看>>
java Text 错误: 找不到或无法加载主类 Text
查看>>
XShell连接ubantu:给ubantu安装ssh
查看>>
c语言的null和0
查看>>
二进制详解:世界上有10种人,一种懂二进制,一种不懂。
查看>>
c语言一个字符变量存储多个字符
查看>>
java接口中方法的默认访问修饰符为public
查看>>