从InfluxDB中选择,其中value为null [英] select from InfluxDB where value is null

查看:154
本文介绍了从InfluxDB中选择,其中value为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的数据(从概念上来说)是:

If my data (conceptually) is:

#  a b c 
  -------
1  1   1
2  1 1 0
3  1 0 1

然后使用旧版SQL语言,则语句应为:

Then in legacy SQL language, the statement would be:

select * from table where b is null

我在InfluxDB查询语言文档中找不到类似的情况.

I cannot find a similar condition within the InfluxDB Query Language documentation.

我正在处理一列中可能有数字值的数据,并且我想选择此列为空/空的记录.由于这些是整数,因此它们似乎根本无法与匹配的正则表达式一起使用,因此类似 where!〜/.*/的东西.

I am working with data where there is optionally a numeric value in a column, and I want to select records where this column is empty/null. Since these are integers, they appear not to work with the matching regexes at all, so something like where !~ /.*/ is out.

推荐答案

您无法搜索空值在InfluxDB <0.9中.您将无法在Influx> = 0.9

You cannot search for nulls in InfluxDB <0.9. You will not be able to insert nulls in Influx >=0.9

这篇关于从InfluxDB中选择,其中value为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆