【问题标题】:InfluxDB composite queryInfluxDB 复合查询
【发布时间】:2015-05-15 14:39:02
【问题描述】:

为什么这个函数没有结果?在 influxdb 中。

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

谢谢。

【问题讨论】:

    标签: node.js influxdb


    【解决方案1】:

    我解决了这个问题:

    select * from series
      where time > now() - 7d
        and newContainerId = 'aaaa'
      limit 100;
    select * from series
      where time > now() - 7d
        and oldContainerId = 'aaaa'
      limit 100
    

    【讨论】:

      【解决方案2】:
      select * from "items.movement" where time > now() - 7d and oldContainerId = 'aaaaaa' and newContainerId = 'aaaaaaaa'

      注意:空格和双引号很重要。

      【讨论】:

        猜你喜欢
        • 2020-12-27
        • 2021-01-24
        • 1970-01-01
        • 1970-01-01
        • 2017-04-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-08-02
        相关资源
        最近更新 更多