There is no USE statement for retention policies. (See
https://github.com/influxdata/influxdb/issues/3188 for details.)

However, most InfluxQL statements support fully qualified
database.retention_policy.measurement notation:
https://docs.influxdata.com/influxdb/v0.13/query_language/data_exploration/#the-select-statement-and-the-where-clause
(See the paragraph beginning with "Fully qualify a measurement...").

For example, SELECT * FROM database.RP_A.measurement

You can omit the database for brevity since the CLI does support USE
<database>.

SELECT * FROM RP_A.measurement

On Tue, Aug 30, 2016 at 5:52 PM, s influxdb <[email protected]> wrote:

> How do we select the retention policy to query the data from ?
>
> If we have 2 RP for example
> RP_A
> RP_B
>
> is it possible to do something like from the influx-cli
> use RP_A
> select * from measurement
>
>
> --
> 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/CAL85UBa8JAkHxZzxKsymHEFODdjGQz67b9AzXt0XFc_H0K4K5Q%40mail.
> gmail.com
> <https://groups.google.com/d/msgid/influxdb/CAL85UBa8JAkHxZzxKsymHEFODdjGQz67b9AzXt0XFc_H0K4K5Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CALGqCvNXiXMpe-OxM%3DWRjg26A0YwuasCMBdm5E3R1bS1ez1PrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to