时序库INFLUXDB 查询时 SHOW MEASUREMENTS ON <database_name> 有数据 但是 SHOW * from MEASUREMENTS 没数据?

时序库INFLUXDB 查询时 SHOW MEASUREMENTS ON <database_name> 有数据 但是 SHOW * from MEASUREMENTS 没数据

阅读 2.9k
1 个回答

没有这样的语法
如果去执行,会直接报错。

show * from [your measurements];
ERR: error parsing query: found *, expected CONTINUOUS, DATABASES, DIAGNOSTICS, FIELD, GRANTS, MEASUREMENT, MEASUREMENTS, QUERIES, RETENTION, SERIES, SHARD, SHARDS, STATS, SUBSCRIPTIONS, TAG, USERS at line 1, char 6

按照提示你可以这样写

show field keys from [your measurements];

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏