【发布时间】:2015-05-15 14:39:02
【问题描述】:
为什么这个函数没有结果?在 influxdb 中。
select * from items.movement
where time > now() - 7d
and oldContainerId='aaaaaa'
and newContainerId='aaaaaaa'
谢谢。
【问题讨论】:
为什么这个函数没有结果?在 influxdb 中。
select * from items.movement
where time > now() - 7d
and oldContainerId='aaaaaa'
and newContainerId='aaaaaaa'
谢谢。
【问题讨论】:
我解决了这个问题:
select * from series
where time > now() - 7d
and newContainerId = 'aaaa'
limit 100;
select * from series
where time > now() - 7d
and oldContainerId = 'aaaa'
limit 100
【讨论】:
select * from "items.movement" where time > now() - 7d and oldContainerId = 'aaaaaa' and newContainerId = 'aaaaaaaa'
注意:空格和双引号很重要。
【讨论】: