There is no IN clause, but you can use regular expressions: SELECT * FROM measurement WHERE tag =~ /a|b|c/
https://docs.influxdata.com/influxdb/v0.13/query_language/data_exploration/#regular-expressions-in-queries https://golang.org/pkg/regexp/syntax/ On Thu, Sep 1, 2016 at 7:13 PM, <[email protected]> wrote: > Hi, > > I was wondering whether there is an equivalent of > > SELECT * FROM measurement WHERE tag in ('a', 'b', 'c') > > I can write an OR query of course, but if there are more than a couple of > options, it becomes quite tedious to dynamically construct a query. > > Thanks :) > > -- > Remember to include the InfluxDB version number with all issue reports > --- > You received this message because you are subscribed to the Google Groups > "InfluxDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/influxdb/e2557f5a-ec7c-4f5b-9e17-782e8c774600%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sean Beckett Director of Support and Professional Services InfluxDB -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CALGqCvPtTM-tqDbetny6%2BPc32U8A5upEq65CvMJ1aKH0atZOEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
