mongodb
2013-04-02 15:14
113 查看
update
'$set': {
"options":{
"A":"choice A stands for",
"B":"choice B stands for",
"C":"choice C stands for",
"D":"choice D stands for",
}
}
find
$and:[{html:/答案/},{html:/回复/}]
$or:[{html:/答案/},{title:/测试/}]
find
or
'$set': {
"options":{
"A":"choice A stands for",
"B":"choice B stands for",
"C":"choice C stands for",
"D":"choice D stands for",
}
}
find
$and:[{html:/答案/},{html:/回复/}]
$or:[{html:/答案/},{title:/测试/}]
find
wordscontains both elements "text" and "here" or either of them:
db.things.find( { words: { $all: [ "text", "here" ] } } );
or
db.things.find( { words: { $in: [ "text", "here" ] } } );
相关文章推荐
- 关于scrapy+mongodb的一些体会
- MongoDB的日常维护管理
- mongodb 学习笔记 08 -- replication复制集
- 10008---Elasticsearch与mongodb分布式集群环境下数据同步
- Window 7下 MongoDB 的安装应用简析
- MongoDB安装
- JAVA - mongodb 聚合查询二扩展
- MongoDB
- php操作mongodb的常用函数
- mongoDB的基本操作
- 安装MongoDB
- php 操作mongodb——增删改查
- 安装MongoDB
- mongodb索引
- 利用mongodb实现分布式WEB图片存储
- mongodb客户端错误集合
- MongoDB学习笔记之GridFS使用介绍
- mongodb C++ driver调用存储过程
- 使用NoSQL Manager for MongoDB客户端连接mongodb
- Linux 安装MongoDB 并设置防火墙,使用远程客户端访问