Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
数据:
x y timestamp 123 123 1000165 123 123 1000167 123 123 1000160 123 123 1000168 123 123 1000154 123 123 1000132 123 123 1000112
如何从时间戳间隔 [time1;time2] 获取数据?
尝试
db.foo.find({ $and: [ {"timestamp" : { $lte: 1000112}}, {"timestamp" : { $gte: 1000165}} ] })