Thanks, Sean :) On 3 September 2016 at 03:13, Sean Beckett <[email protected]> wrote:
> 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 a topic in the > Google Groups "InfluxDB" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/influxdb/VAwy4iNhDPU/unsubscribe. > To unsubscribe from this group and all its topics, 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%2BPc32U8A5upEq65CvMJ1aKH0atZOE > w%40mail.gmail.com > <https://groups.google.com/d/msgid/influxdb/CALGqCvPtTM-tqDbetny6%2BPc32U8A5upEq65CvMJ1aKH0atZOEw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAAHSRnB%3DGJxo%2ByLO7JxXEcCpumXh1U6W1q%2BQiHpau5ER%2BQU6HQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
