Rockmongo 查询条件总结
2016-05-31 00:00
281 查看
Json 格式查询
基本查询
{
"Deleted": "1"
}
并列条件
{
"xid": 560870,
"type": "video"
}
查询带有集合的数据
{
"Parameter.centerCityId": "6666"
}
不等于
{
"Deleted": {$ne:"1"}
}
说明:
$gt >
$gte >=
$lt <
$lte <=
$ne !=
$in : in
$nin: not in
$all: all
$not: 反匹配
判断字段是否存在
{
"Deleted": {$exists: true}
}
模糊查询%哈哈%
{
"requestParam" : {
"$regex":"哈哈",
"$options":"i"
}
}
基本查询
{
"Deleted": "1"
}
并列条件
{
"xid": 560870,
"type": "video"
}
查询带有集合的数据
{
"Parameter.centerCityId": "6666"
}
不等于
{
"Deleted": {$ne:"1"}
}
说明:
$gt >
$gte >=
$lt <
$lte <=
$ne !=
$in : in
$nin: not in
$all: all
$not: 反匹配
判断字段是否存在
{
"Deleted": {$exists: true}
}
模糊查询%哈哈%
{
"requestParam" : {
"$regex":"哈哈",
"$options":"i"
}
}
相关文章推荐
- 基于Ubuntu14.04+ROS indigo环境LSD-SLAM的数据集测试成功
- 优分享VR开源啦,优分享VR是基于Google VR开发的一款手机VR视频资源的聚合软件
- [翻译]PyMongo官方文档
- google删除后重新安装失败
- 深度解读 AlphaGo 算法原理
- GO的跨平台数扰类型
- 基因数据处理43之mango之503错误
- 【HDU】 1397 Goldbach's Conjecture
- 基因数据处理42之mango问题_seqdict.avro不存在解决
- Intent中的四个重要属性——Action、Data、Category、Extras
- go 初使用
- 如何让Beamer的logo放在右上角
- Django 进阶(装饰器,Mixin,信号,模式)
- mongo 启动方式
- Django 的文件存储
- 论删除gmscore后可能出现的问题
- GPS坐标互转:WGS-84(GPS)、GCJ-02(Google地图)、BD-09(百度地图)
- go语言版的猜数字游戏
- Django 前后台的数据传递
- Google Guava之--cache