MongoDB学习
2015-10-19 16:26
519 查看
查找表中 t 时间字段大于 ‘2015-10-01 10:10:10’ 且小于‘2015-10-15 10:10:10’ 且在存在 x字段 且 x字段值 包含'abc'的所有行
{
"t": {"$gt": "2015-10-01 10:10:10", "$lt":"2015-10-15 10:10:10"},
"x": {"$ne": null, "$exists":true, "$regex": '.abc.', "$options": 'i'}
}
类似:select * from mongodb.collections where t>'2015-10-01 10:10:10' and t<'2015-10-15 10:10:10' and x <> null and x like '%abc%'
{
"t": {"$gt": "2015-10-01 10:10:10", "$lt":"2015-10-15 10:10:10"},
"x": {"$ne": null, "$exists":true, "$regex": '.abc.', "$options": 'i'}
}
类似:select * from mongodb.collections where t>'2015-10-01 10:10:10' and t<'2015-10-15 10:10:10' and x <> null and x like '%abc%'
相关文章推荐
- C#操作Mongodb的心得
- mongodb集群搭建-replica set模式
- MongoDb命令行操作
- MongoDB安装成为Windows服务
- MongoDB基本命令用
- MongoDB的备份(mongodump)与恢复(mongorestore)
- Mongodb 字段类型转换
- MongoDB Linux下的安装和启动
- MongoDB安装和基本使用
- 初步认识mongodb文件
- Linux下的mongodb服务监视脚本(启动服务)
- node+mongodb+WP构建的移动社交应用源码 分享
- Mongodb的Samus驱动
- .NET连接MongoDB数据库实例教程
- centOS下mongodb的安装
- Spring Data MongoDB简单的增删改查
- MongoDB安装指南
- mongodb数据库collection的增长的监控
- 浅析mongodb数据库链接
- 浅析mongodb主从库的配置