- 浏览: 258117 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (263)
- mysql (5)
- boost (6)
- 工具 (10)
- IT生活 (7)
- 多线程 (3)
- Ruby (15)
- php (2)
- MongoDB (39)
- 移动互联网 (2)
- 测试 (8)
- c++ (28)
- 书 (1)
- 网站 (3)
- 网络编程 (14)
- 开源软件 (1)
- 分布式计算 (1)
- 得得得 (1)
- php,wordpress (1)
- error (5)
- 编译 (2)
- 学习 (1)
- 杀毒软件 (1)
- dd (0)
- linux (21)
- 数据库 (1)
- STL (1)
- c++/c (5)
- 软件设计 (1)
- 操作系统 (4)
- 库 (2)
- win32 (1)
- s (0)
- openssl (1)
- perl (2)
- debug (1)
- windows (4)
- python (12)
- windows 防火墙 (1)
- vs (1)
- vim (2)
- vc (1)
- 浏览器插件的危害 (1)
- curl (0)
- 判断手机号码合法性的库 (0)
- 地址备注 (0)
- 安装 File::Slurp (1)
- cenos (2)
- shell (1)
- linunx (1)
- internet (1)
- software (1)
- widows (1)
- linux io (1)
- nginx (2)
- 算法 (2)
- google (1)
- protobuf (2)
- tengine (1)
- tools (1)
- lua (2)
- liunx (1)
- vcard (1)
- lua-iconv (1)
- 网络 (2)
- teat (0)
- ldconfig linux (0)
- awk (0)
- grep (0)
- windws (2)
- linux 命令 (1)
- tcp dump (1)
- vmware (1)
- question2answer (2)
- mongdb (1)
- 正则 (1)
- OCR (2)
- Windows Server (1)
最新评论
1.简单查询
//xid=560870 and type=video
{
"xid": 560870,
"type": "video"
}
//查询数组中的数据
array(
"fruit.name"=>'aa'
)
返回如:
array (
'fruit' =>
array (
'name' => 'aa',
'age' => '34',
),
'name' => 'caihuafeng',
)
2.模糊查询
//content like %爱%
array(
"content"=>new MongoRegex("/爱/i")
)
//查询以"爱"开头并且以"爱"结尾的数据
array(
"content"=>new MongoRegex("/^爱$/i")
)
3.大于、小于、不等于查询
//uid>=561484
array(
"uid"=>array('$gte'=>561484)
)
//uid>=0 and uid<=561484
array(
"uid"=>array('$gte'=>0,'$lte'=>561484)
)
//uid in (561484,0)
array(
"uid"=>array('$in'=>array(561484,0))
)
说明:
$gt >
$gte >=
$lt <
$lte <=
$ne !=
$in : in
$nin: not in
$all: all
$not: 反匹配
4.查询指定字段
//查询存在uid字段的数据
array(
"uid"=>array('$exists'=>true)
)
//查询不存在uid字段的数据
array(
"uid"=>array('$exists'=>false)
)
5.查询字段类型
//查询content字段为字符型的数据
array(
"content"=>array('$type'=>2)
)
2 字符型
16 整型
6.查询数组指定的长度
//查询fruit大小为2的数据
array(
"fruit"=>array('$size'=>2)
)
返回如下:
array (
'_id' => new MongoId("4e411abf7c1883973c0e2114"),
'fruit' =>
array (
'0' => 'aa',
'1' => 'bb',
),
'name' => 'caihuafeng',
)
转自: http://hi.baidu.com/woaidelphi/blog/item/19f07613152df19c6438db36.html
//xid=560870 and type=video
{
"xid": 560870,
"type": "video"
}
//查询数组中的数据
array(
"fruit.name"=>'aa'
)
返回如:
array (
'fruit' =>
array (
'name' => 'aa',
'age' => '34',
),
'name' => 'caihuafeng',
)
2.模糊查询
//content like %爱%
array(
"content"=>new MongoRegex("/爱/i")
)
//查询以"爱"开头并且以"爱"结尾的数据
array(
"content"=>new MongoRegex("/^爱$/i")
)
3.大于、小于、不等于查询
//uid>=561484
array(
"uid"=>array('$gte'=>561484)
)
//uid>=0 and uid<=561484
array(
"uid"=>array('$gte'=>0,'$lte'=>561484)
)
//uid in (561484,0)
array(
"uid"=>array('$in'=>array(561484,0))
)
说明:
$gt >
$gte >=
$lt <
$lte <=
$ne !=
$in : in
$nin: not in
$all: all
$not: 反匹配
4.查询指定字段
//查询存在uid字段的数据
array(
"uid"=>array('$exists'=>true)
)
//查询不存在uid字段的数据
array(
"uid"=>array('$exists'=>false)
)
5.查询字段类型
//查询content字段为字符型的数据
array(
"content"=>array('$type'=>2)
)
2 字符型
16 整型
6.查询数组指定的长度
//查询fruit大小为2的数据
array(
"fruit"=>array('$size'=>2)
)
返回如下:
array (
'_id' => new MongoId("4e411abf7c1883973c0e2114"),
'fruit' =>
array (
'0' => 'aa',
'1' => 'bb',
),
'name' => 'caihuafeng',
)
转自: http://hi.baidu.com/woaidelphi/blog/item/19f07613152df19c6438db36.html
发表评论
-
mongodb 从3.0 升级到3.2
2016-06-15 19:27 1404下载mongodb: curl "https://f ... -
MongoDB 日志切换
2016-06-13 17:47 775MongoDB默认情况下不会自动的切换轮转日志的,这将会导致日 ... -
mongodb c++ driver 从2.4.6 升级到3.0.1 注意点 (windows版本)
2015-09-15 17:58 6311. 使用mongodbclient的静态库需要定义下面的值 ... -
check_mongodb nagios
2015-08-17 17:22 0nagios check_mongodb插件监控mongodb ... -
Mongodb profiling
2015-08-06 10:14 361Mongodb profiling是Mngodb提供的类似于m ... -
linux mongdb 备份操作笔记
2015-07-22 09:21 529目的:添加一个延迟1小时的sencodary作为冷备数据库 ... -
mongodb 操作失失误救策略
2015-07-14 20:47 381杀掉某个正在处理的操作: db.currentOp() db ... -
mongodb oplog
2015-06-30 10:53 473mongodb oplog的使用 所在位置: Master/ ... -
mongodb 升级的问题导致添加帐号出现问题
2015-06-05 11:47 895mongodb 原有数据库版本:2.2.2 更新到数据库版本 ... -
libmongodbclient 2.6.6
2015-02-25 11:43 438mongodb c++ driver 2.6之后的版本不能从m ... -
mongodb 搜索结果保存到文件中
2013-07-22 16:44 1895第一种方式: mongo localhost:11111/te ... -
getLastError mongodb
2013-04-03 10:32 0一、简介 很多人抱怨mongodb是内存数据库,也没有事务,会 ... -
getLastError mongodb
2013-03-30 18:24 876http://docs.mongodb.org/manual/ ... -
[转]十个 MongoDB 使用要点
2013-03-20 10:19 781从 [url = "http://space.i ... -
利用mongodb c++ driver来编译
2012-12-04 15:12 0编译库时错误: 引用 E:\code_64\v2.2.2\m ... -
scons 64 mongodb
2012-08-01 19:52 943编译64位mongodb spin_lock.cpp cl ... -
scons 编译 mongodb client lib
2012-07-31 20:09 1173Use scons to build MongoDB and ... -
MongoDB 客户端 MongoVue
2012-05-14 11:13 913今天在同事那里看到了 ... -
mongodb 2.0.0 replica set + authentication bug
2012-04-26 13:56 895mongodb 2.0.0 replica set + aut ... -
array in mongodb ( c++ driver)
2012-04-25 17:31 2166BSONArray BSONArrayBuilder ...
相关推荐
windows版rockmongo
rockmongo rockmongo插件
使用宽松的New BSD License协议速度快,安装简单支持多语言(目前提供中文、英文、日文、巴西葡萄牙语、法语、德语、俄语、意大利语)系统可以配置多个主机,每个主机可以有多个管理员需要管理员密码才能登入操作,...
包括rockmongo以及如何让配置的说明,亲测可以
最新的rockmongo 下载,原网站已不能运行,好用的php版管理mongodb的管理工具
一款优秀的mongodb数据库管理工具,可视化的对数据进行追踪
主要特征: 使用宽松的New BSD License协议 速度快,安装简单 支持多语言(目前提供中文、英文、日文) 系统 可以配置多个主机,每个主机可以有多个管理员 需要管理员密码才能登入操作,确保数据库的安全性 服务器 ...
rockmongo,作者已经不维护了,最后一个版本1.1.7版。
可以配置多个主机,每个主机可以有多个管理员需要管理员密码才能登入操作,确保数据库的安全性服务器服务器信息 (WEB服务器 PHP PHP.ini相关指令 ...)状态数据库信息数据库查询,创建和删除执行命令和Javascript代码...
mongodb 可视化工具,使用的PHP实现,very good Best PHP MongoDB Administrator,MongoDB admin UI,MongoDB GUI
rockmongo资料
使用宽松的New BSD License协议 速度快,安装简单 支持多语言(目前提供中文、英文、日文、巴西葡萄牙语、法语、德语、俄语、意大利语) 系统 可以配置多个主机,每个主机可以有多个管理员 需要管理员...
RockMongo是一个PHP5写的MongoDB管理工具。 RockMongo(MongoDB管理工具) 1.1.6 更新内容: * 增加土耳其语 * 支持2d索引 ...•使用宽松的New BSD License协议 ...•支持多语言(目前提供中文、...6.开始玩转MongoDB!
MongoDB管理工具Rockmongo.pdf 学习资料 复习资料 教学资源
MongoDB数据库以及可视化的工具MongoVUE和rockMongo,MongoDB版本在3.0以上的不能选择MongoVUE,否则会出现无法连接到collection的情况
RockMongo MongoDB数据库管理工具源码 非常不错 懂的自己下吧!
mongo-latest-php5.3-safe-thread.zip mongo-latest-php5.3-no-thread-safe.zip rockmongo-v1.1.0.zip rockmongo-on-windows-v0.0.2.rar 共四个文件 ,php 版本 很不错的 mongo 监控 系统
RockMongo是一个MongoDB管理工具。功能强大,操作简单。javascript写的。Windows7, 8, 10,server 2008, server 2012可以。
基于PHP的RockMongo php MongoDB管理工具.zip
MongoDB管理工具RockMongo的安装1、安装php5环境,apt-get install php52、安装pecl,以便下载php-mongo即php