mongo数据表有一个字段regTime是一个时间戳 比如说现在我要查询大于9点的数据 我目前的思路是这样的 因为mongo是js终端嘛 不晓得有没有办法处理regTime 查询条件(伪代码)
new Date(regTime*1000).getHours()>9 望各位高手指点
mongo数据表有一个字段regTime是一个时间戳 比如说现在我要查询大于9点的数据 我目前的思路是这样的 因为mongo是js终端嘛 不晓得有没有办法处理regTime 查询条件(伪代码)
new Date(regTime*1000).getHours()>9 望各位高手指点
10 回答11.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
4 回答4.4k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
http://docs.mongodb.org/manual/reference/operator/query/where/