博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mongodb
阅读量:4553 次
发布时间:2019-06-08

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

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 words contains both elements "text" and "here" or either of them:

db.things.find( { words: { $all: [ "text", "here" ] } } );

or

db.things.find( { words: { $in: [ "text", "here" ] } } );

转载于:https://www.cnblogs.com/no7dw/archive/2013/04/02/2984779.html

你可能感兴趣的文章
课程总结
查看>>
openstack新建虚机、网络、路由时候对应的ovs网桥的变化
查看>>
linux 编译运行c文件
查看>>
Scrapy的学习和使用
查看>>
7.内部类(一)之详解内部类
查看>>
1.messager消息提示框
查看>>
C teaching
查看>>
分隔指定内容,提取章节数
查看>>
this point
查看>>
验证登录信息是否合法
查看>>
线程池
查看>>
git版本控制器的基本使用
查看>>
Redis 笔记与总结4 set 和 zset 类型
查看>>
jQuery Ajax 回调函数中调用$(this)的问题 [ 转 ]
查看>>
thymeleaf:字符串拼接+输出单引号
查看>>
springboot:集成fastjson(教训)
查看>>
网络流 Edmons-Karp 算法讲解
查看>>
「NOIP2018模拟9.10」公约数 - 找规律 - gcd
查看>>
使用java理解程序逻辑(15)
查看>>
bzoj 1879 状压dp
查看>>