-1

Why this function don't bring the results? In influxdb.

select * from items.movement
  where time > now() - 7d
    and oldContainerId='aaaaaa'
    and newContainerId='aaaaaaa'

Thanks.

4

2 回答 2

1

I solved with this:

select * from series
  where time > now() - 7d
    and newContainerId = 'aaaa'
  limit 100;
select * from series
  where time > now() - 7d
    and oldContainerId = 'aaaa'
  limit 100
于 2015-05-15T15:38:32.363 回答
0
select *  from "items.movement" where time > now() - 7d and oldContainerId = 'aaaaaa' and newContainerId = 'aaaaaaa'

NOTE : Space and double quotes matters.

于 2017-03-08T07:07:43.007 回答