【问题标题】:Why is this simple influx select query returning an empty result?为什么这个简单的流入选择查询返回一个空结果?
【发布时间】:2019-04-13 16:47:24
【问题描述】:

来自:https://stackoverflow.com/a/47459151/1663462

> use abcxyz;
Using database abcxyz
> INSERT cpu,host=serverA,region=us_west value=0.64
> SELECT * from abcxyz;
> SELECT cpu from abcxyz;

为什么SELECT 查询没有返回结果?


我找到了一个有效的查询:

select * from cpu;
name: cpu
time                host    region  value
----                ----    ------  -----
1555173896021474852 serverA us_west 0.64
1555173957479404100 serverA us_west 0.64
1555173967231619401 serverA us_west 0.64

【问题讨论】:

    标签: influxdb influxql


    【解决方案1】:

    SELECT 对存在于数据库中的测量值起作用。您可以将测量视为标准 RDBMS 软件中的表格。

    所以SELECT fields_or_tags FROM measurement 是正确的语法

    【讨论】:

    • 当从不退出的测量中选择时,它不应该显示错误吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-24
    • 1970-01-01
    • 1970-01-01
    • 2019-12-11
    相关资源
    最近更新 更多