首页 > mongodb高级查询js

mongodb高级查询js

mongo数据表有一个字段regTime是一个时间戳 比如说现在我要查询大于9点的数据 我目前的思路是这样的 因为mongo是js终端嘛 不晓得有没有办法处理regTime 查询条件(伪代码)
new Date(regTime*1000).getHours()>9 望各位高手指点


http://docs.mongodb.org/manual/reference/operator/query/where/

【热门文章】
【热门文章】