ported influxql docs into cloud

pull/4651/head
Scott Anderson 2022-11-21 16:55:55 -07:00
parent 4dcb7dfe6f
commit b0ecc3ad19
23 changed files with 310 additions and 8 deletions

View File

@ -2,19 +2,18 @@
title: Query data with InfluxQL
description: >
Use the [InfluxDB 1.x `/query` compatibility endpoint](/influxdb/cloud/reference/api/influxdb-1x/query)
to query data in InfluxDB Cloud with **InfluxQL**.
to query data in InfluxDB Cloud and InfluxDB OSS 2.4 with **InfluxQL**.
weight: 102
influxdb/cloud/tags: [influxql, query]
menu:
influxdb_cloud:
name: Query with InfluxQL
parent: Query data
cascade:
related:
- /influxdb/cloud/reference/api/influxdb-1x/
- /influxdb/cloud/reference/api/influxdb-1x/query
- /influxdb/cloud/reference/api/influxdb-1x/dbrp
- /influxdb/cloud/tools/influxql-shell/
related:
- /influxdb/cloud/reference/api/influxdb-1x/
- /influxdb/cloud/reference/api/influxdb-1x/query
- /influxdb/cloud/reference/api/influxdb-1x/dbrp
- /influxdb/cloud/tools/influxql-shell/
---
{{< duplicate-oss >}}

View File

@ -7,7 +7,7 @@ description: >
menu:
influxdb_cloud:
parent: Query with InfluxQL
weight: 202
weight: 201
influxdb/cloud/tags: [influxql, dbrp]
---

View File

@ -0,0 +1,13 @@
---
title: Explore data using InfluxQL
description: >
Explore time series data using InfluxQL, InfluxData's SQL-like query language.
Use the `SELECT` statement to query data from measurements, tags, and fields.
menu:
influxdb_cloud:
name: Explore data
parent: Query with InfluxQL
weight: 202
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,16 @@
---
title: GROUP BY clause
description: >
Use the `GROUP BY` clause to group query results by one or more specified [tags](/influxdb/cloud/reference/glossary/#tag) and/or a specified time interval.
menu:
influxdb_cloud:
name: GROUP BY clause
parent: Explore data
weight: 303
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] GROUP BY [* | <tag_key>[,<tag_key]]
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,16 @@
---
title: LIMIT and SLIMIT clauses
description: >
Use the `LIMIT` and `SLIMIT` clauses to limit the number of [points](/influxdb/cloud/reference/glossary/#point) and [series](/influxdb/cloud/reference/glossary/#series) returned in queries.
menu:
influxdb_cloud:
name: LIMIT and SLIMIT clauses
parent: Explore data
weight: 305
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] [GROUP_BY_clause] [ORDER_BY_clause] LIMIT <N>
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,16 @@
---
title: OFFSET and SOFFSET clauses
description: >
Use the `OFFSET` and `SOFFSET` clauses to paginate [points](/influxdb/cloud/reference/glossary/#point) and [series](/influxdb/cloud/reference/glossary/#series).
menu:
influxdb_cloud:
name: OFFSET and SOFFSET clauses
parent: Explore data
weight: 306
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] [GROUP_BY_clause] [ORDER_BY_clause] LIMIT_clause OFFSET <N> [SLIMIT_clause]
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,17 @@
---
title: ORDER BY clause
list_title: ORDER BY clause
description: >
Use the `ORDER BY` clause to sort data in ascending or descending order.
menu:
influxdb_cloud:
name: ORDER BY clause
parent: Explore data
weight: 304
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] [GROUP_BY_clause] ORDER BY time DESC
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,18 @@
---
title: Regular expressions
list_title: Regular expressions
description: >
Use `regular expressions` to match patterns in your data.
menu:
influxdb_cloud:
name: Regular expressions
identifier: influxql-regular-expressions
parent: Explore data
weight: 313
list_code_example: |
```sql
SELECT /<regular_expression_field_key>/ FROM /<regular_expression_measurement>/ WHERE [<tag_key> <operator> /<regular_expression_tag_value>/ | <field_key> <operator> /<regular_expression_field_value>/] GROUP BY /<regular_expression_tag_key>/
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,17 @@
---
title: SELECT statement
list_title: SELECT statement
description: >
Use the `SELECT` statement to query data from a particular [measurement](/influxdb/cloud/reference/glossary/#measurement) or measurements.
menu:
influxdb_cloud:
name: SELECT statement
parent: Explore data
weight: 301
list_code_example: |
```sql
SELECT <field_key>[,<field_key>,<tag_key>] FROM <measurement_name>[,<measurement_name>]
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,16 @@
---
title: Subqueries
description: >
Use a `subquery` to apply a query as a condition in the enclosing query.
menu:
influxdb_cloud:
name: Subqueries
parent: Explore data
weight: 310
list_code_example: |
```sql
SELECT_clause FROM ( SELECT_statement ) [...]
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,17 @@
---
title: Time and timezone queries
list_title: Time and timezone queries
description: >
Explore InfluxQL features used specifically for working with time. Use the `tz` (timezone) clause to return the UTC offset for the specified timezone.
menu:
influxdb_cloud:
name: Time and timezone
parent: Explore data
weight: 308
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] [GROUP_BY_clause] [ORDER_BY_clause] [LIMIT_clause] [OFFSET_clause] [SLIMIT_clause] [SOFFSET_clause] tz('<time_zone>')
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,17 @@
---
title: The WHERE clause
list_title: WHERE clause
description: >
Use the `WHERE` clause to filter data based on [fields](/influxdb/cloud/reference/glossary/#field), [tags](/influxdb/cloud/reference/glossary/#tag), and/or [timestamps](/influxdb/cloud/reference/glossary/#timestamp).
menu:
influxdb_cloud:
name: WHERE clause
parent: Explore data
weight: 302
list_code_example: |
```sql
SELECT_clause FROM_clause WHERE <conditional_expression> [(AND|OR) <conditional_expression> [...]]
```
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: Explore your schema using InfluxQL
description: >
Learn to use InfluxQL to explore the schema of your time series data.
menu:
influxdb_cloud:
name: Explore your schema
parent: Query with InfluxQL
identifier: explore-schema-influxql
weight: 202
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,12 @@
---
title: View InfluxQL functions
description: >
Aggregate, select, transform, and predict data with InfluxQL functions.
menu:
influxdb_cloud:
name: InfluxQL functions
parent: Query with InfluxQL
weight: 203
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: InfluxQL aggregate functions
list_title: Aggregate functions
description: >
Aggregate data with InfluxQL aggregate functions.
menu:
influxdb_cloud:
name: Aggregates
parent: InfluxQL functions
weight: 205
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: InfluxQL selector functions
list_title: Selector functions
description: >
Select data with InfluxQL selector functions.
menu:
influxdb_cloud:
name: Selectors
parent: InfluxQL functions
weight: 205
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: InfluxQL analysis functions
list_title: Technical analysis functions
description: >
Use technical analysis functions to apply algorithms to your data.
menu:
influxdb_cloud:
name: Technical analysis
parent: InfluxQL functions
weight: 205
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: InfluxQL transformation functions
list_title: Tranfsormation functions
description: >
Use transformation functions modify and return values each row of queried data.
menu:
influxdb_cloud:
name: Transformations
parent: InfluxQL functions
weight: 205
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: Manage your data using InfluxQL
description: >
Use InfluxQL data management commands to write and delete data.
menu:
influxdb_cloud:
name: Manage your data
parent: Query with InfluxQL
identifier: manage-database
weight: 204
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: InfluxQL mathematical operators
descriptions: >
Use InfluxQL mathematical operators to perform mathematical operations in queries.
menu:
influxdb_cloud:
name: Mathematical operators
parent: Query with InfluxQL
identifier: influxql-mathematical-operators
weight: 209
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: InfluxQL syntax
list_title: InfluxQL
description: InfluxQL is an SQL-like query language for interacting with data in InfluxDB.
menu:
influxdb_cloud_ref:
parent: Syntax
name: InfluxQL
identifier: influxql-syntax
weight: 101
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,11 @@
---
title: InfluxQL internals reference
description: Read about the implementation of InfluxQL.
menu:
influxdb_cloud_ref:
name: InfluxQL internals
parent: influxql-syntax
weight: 106
---
{{< duplicate-oss >}}

View File

@ -0,0 +1,13 @@
---
title: Influx Query Language (InfluxQL) 2.x specification
description: Reference (spec) for Influx Query Language (InfluxQL) 2.x.
menu:
influxdb_cloud_ref:
name: InfluxQL 2.x specification
parent: influxql-syntax
aliases:
- /influxdb/cloud/query_languages/spec/
weight: 103
---
{{< duplicate-oss >}}