我是InfluxDB的新手。我已经用时间序列数据填充了流量测量值。
我有以下测量点
time,host,interface,value
2/11/2019 12:03:08 AM,XYZ_test ,gigabitethernet8/43,"292724"值是字符串的形式,我需要用InfluxQL将列转换成整型或浮点型,该怎么做?
发布于 2019-02-13 22:24:36
使用此函数,您应该能够将值从浮点型转换为整型。
SELECT column_name::integer FROM table_name
你可以在这里参考InfluxDB文档,
编辑:,但是不支持将字符串转换为整数。
https://stackoverflow.com/questions/54672053
复制相似问题