如果我的数据(概念上)是:
# a b c
-------
1 1 1
2 1 1 0
3 1 0 1
Run Code Online (Sandbox Code Playgroud)
然后在遗留SQL语言中,语句将是:
select * from table where b is null
Run Code Online (Sandbox Code Playgroud)
我在InfluxDB查询语言文档中找不到类似的条件.
我正在使用数据,其中列中有可选的数值,我想选择此列为空/空的记录.由于这些是整数,它们似乎根本不适用于匹配的正则表达式,所以类似的东西where !~ /.*/就出来了.
Avi*_*vis 10
InfluxDB不理解NULL,如果使用is null或is not null在查询中会显示错误.为了找到类似于null的东西,我们需要寻找空的空间,即使用空的单引号
SELECT * FROM service_detail where username != ''
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17097 次 |
| 最近记录: |