Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
227 views
in Technique[技术] by (71.8m points)

Influxdb query on tag returns nothing

I have an Influxdb with lots of fields and a single tag:

> show tag keys
name: rtl433
tagKey
------
model

Now, I want a list of all possible values for model, so I run

SELECT model FROM rtl433
>

-and it returns nothing. Why? There's lots of data in model if I select *.

question from:https://stackoverflow.com/questions/66045370/influxdb-query-on-tag-returns-nothing

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You are trying to use classic SQL solution, but InfluxDB is not classic SQL DB. You should check InfluxDB doc and you will find solution:

SHOW TAG VALUES WITH KEY = "model"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...