SQL & InfluxQL reference docs for Pro and OSS v3 (#5718)

* point to shared influxql source files

* add sql and influxql references to pro and oss v3 docs

* Apply suggestions from code review

Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>

* ported changes to distributed influxql refs

---------

Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com>
pull/5737/head
Scott Anderson 2024-12-30 08:19:49 -07:00 committed by GitHub
parent 4c6f8eb92a
commit 24eea8c548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
177 changed files with 2306 additions and 10 deletions

View File

@ -11,3 +11,7 @@ weight: 102
source: /shared/influxql-v3-reference/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/_index.md
-->

View File

@ -12,3 +12,7 @@ weight: 220
source: /shared/influxql-v3-reference/feature-support.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/feature-support.md
-->

View File

@ -11,3 +11,7 @@ weight: 208
source: /shared/influxql-v3-reference/functions/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/_index.md
-->

View File

@ -13,3 +13,7 @@ related:
source: /shared/influxql-v3-reference/functions/aggregates.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/aggregates.md
-->

View File

@ -11,3 +11,7 @@ weight: 206
source: /shared/influxql-v3-reference/functions/date-time.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/date-time.md
-->

View File

@ -13,3 +13,7 @@ weight: 206
source: /shared/influxql-v3-reference/functions/misc.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/misc.md
-->

View File

@ -13,3 +13,7 @@ related:
source: /shared/influxql-v3-reference/functions/selectors.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/selectors.md
-->

View File

@ -13,3 +13,7 @@ draft: true
source: /shared/influxql-v3-reference/functions/technical-analysis.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/technical-analysis.md
-->

View File

@ -2,7 +2,7 @@
title: InfluxQL transformation functions
list_title: Transformation functions
description: >
Use transformation functions modify and return values in each row of queried data.
Use transformation functions to modify and return values in each row of queried data.
menu:
influxdb_cloud_dedicated:
name: Transformations
@ -11,3 +11,7 @@ weight: 205
source: /shared/influxql-v3-reference/functions/transformations.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/transformations.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/group-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/group-by.md
-->

View File

@ -9,3 +9,7 @@ weight: 219
source: /shared/influxql-v3-reference/internals.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/internals.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/limit-and-slimit.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/limit-and-slimit.md
-->

View File

@ -12,3 +12,7 @@ weight: 215
source: /shared/influxql-v3-reference/math-operators.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/math-operators.md
-->

View File

@ -17,3 +17,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/offset-and-soffset.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/offset-and-soffset.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/order-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/order-by.md
-->

View File

@ -20,3 +20,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/quoting.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/quoting.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/regular-expressions.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/regular-expressions.md
-->

View File

@ -17,3 +17,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/select.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/select.md
-->

View File

@ -17,3 +17,7 @@ related:
source: /shared/influxql-v3-reference/show.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/show.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/subqueries.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/subqueries.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/time-and-timezone.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/time-and-timezone.md
-->

View File

@ -15,3 +15,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/where.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/where.md
-->

View File

@ -1,7 +1,7 @@
---
title: JOIN clause
description: >
Use the `JOIN` clause to join to data from different tables together.
Use the `JOIN` clause to join together data from different tables.
menu:
influxdb_cloud_dedicated:
name: JOIN clause

View File

@ -3,7 +3,7 @@ title: SQL comparison operators
list_title: Comparison operators
description: >
Comparison operators evaluate the relationship between the left and right
operands and returns `true` or `false`.
operands and return `true` or `false`.
menu:
influxdb_cloud_dedicated:
name: Comparison operators

View File

@ -11,3 +11,7 @@ weight: 102
source: /shared/influxql-v3-reference/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/_index.md
-->

View File

@ -12,3 +12,7 @@ weight: 220
source: /shared/influxql-v3-reference/feature-support.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/feature-support.md
-->

View File

@ -11,3 +11,7 @@ weight: 208
source: /shared/influxql-v3-reference/functions/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/_index.md
-->

View File

@ -13,3 +13,7 @@ related:
source: /shared/influxql-v3-reference/functions/aggregates.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/aggregates.md
-->

View File

@ -11,3 +11,7 @@ weight: 206
source: /shared/influxql-v3-reference/functions/date-time.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/date-time.md
-->

View File

@ -13,3 +13,7 @@ weight: 206
source: /shared/influxql-v3-reference/functions/misc.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/misc.md
-->

View File

@ -13,3 +13,7 @@ related:
source: /shared/influxql-v3-reference/functions/selectors.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/selectors.md
-->

View File

@ -13,3 +13,7 @@ draft: true
source: /shared/influxql-v3-reference/functions/technical-analysis.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/technical-analysis.md
-->

View File

@ -2,7 +2,7 @@
title: InfluxQL transformation functions
list_title: Transformation functions
description: >
Use transformation functions modify and return values in each row of queried data.
Use transformation functions to modify and return values in each row of queried data.
menu:
influxdb_cloud_serverless:
name: Transformations
@ -11,3 +11,7 @@ weight: 205
source: /shared/influxql-v3-reference/functions/transformations.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/transformations.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/group-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/group-by.md
-->

View File

@ -9,3 +9,7 @@ weight: 219
source: /shared/influxql-v3-reference/internals.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/internals.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/limit-and-slimit.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/limit-and-slimit.md
-->

View File

@ -12,3 +12,7 @@ weight: 215
source: /shared/influxql-v3-reference/math-operators.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/math-operators.md
-->

View File

@ -17,3 +17,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/offset-and-soffset.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/offset-and-soffset.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/order-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/order-by.md
-->

View File

@ -20,3 +20,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/quoting.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/quoting.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/regular-expressions.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/regular-expressions.md
-->

View File

@ -17,3 +17,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/select.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/select.md
-->

View File

@ -17,3 +17,7 @@ related:
source: /shared/influxql-v3-reference/show.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/show.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/subqueries.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/subqueries.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/time-and-timezone.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/time-and-timezone.md
-->

View File

@ -15,3 +15,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/where.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/where.md
-->

View File

@ -1,7 +1,7 @@
---
title: JOIN clause
description: >
Use the `JOIN` clause to join to data from different tables together.
Use the `JOIN` clause to join together data from different tables.
menu:
influxdb_cloud_serverless:
name: JOIN clause

View File

@ -3,7 +3,7 @@ title: SQL comparison operators
list_title: Comparison operators
description: >
Comparison operators evaluate the relationship between the left and right
operands and returns `true` or `false`.
operands and return `true` or `false`.
menu:
influxdb_cloud_serverless:
name: Comparison operators

View File

@ -11,3 +11,7 @@ weight: 102
source: /shared/influxql-v3-reference/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/_index.md
-->

View File

@ -12,3 +12,7 @@ weight: 220
source: /shared/influxql-v3-reference/feature-support.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/feature-support.md
-->

View File

@ -11,3 +11,7 @@ weight: 208
source: /shared/influxql-v3-reference/functions/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/_index.md
-->

View File

@ -13,3 +13,7 @@ related:
source: /shared/influxql-v3-reference/functions/aggregates.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/aggregates.md
-->

View File

@ -11,3 +11,7 @@ weight: 206
source: /shared/influxql-v3-reference/functions/date-time.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/date-time.md
-->

View File

@ -13,3 +13,7 @@ weight: 206
source: /shared/influxql-v3-reference/functions/misc.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/misc.md
-->

View File

@ -13,3 +13,7 @@ related:
source: /shared/influxql-v3-reference/functions/selectors.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/selectors.md
-->

View File

@ -13,3 +13,7 @@ draft: true
source: /shared/influxql-v3-reference/functions/technical-analysis.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/technical-analysis.md
-->

View File

@ -2,7 +2,7 @@
title: InfluxQL transformation functions
list_title: Transformation functions
description: >
Use transformation functions modify and return values in each row of queried data.
Use transformation functions to modify and return values in each row of queried data.
menu:
influxdb_clustered:
name: Transformations
@ -11,3 +11,7 @@ weight: 205
source: /shared/influxql-v3-reference/functions/transformations.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/transformations.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/group-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/group-by.md
-->

View File

@ -9,3 +9,7 @@ weight: 219
source: /shared/influxql-v3-reference/internals.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/internals.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/limit-and-slimit.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/limit-and-slimit.md
-->

View File

@ -12,3 +12,7 @@ weight: 215
source: /shared/influxql-v3-reference/math-operators.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/math-operators.md
-->

View File

@ -17,3 +17,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/offset-and-soffset.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/offset-and-soffset.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/order-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/order-by.md
-->

View File

@ -20,3 +20,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/quoting.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/quoting.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/regular-expressions.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/regular-expressions.md
-->

View File

@ -17,3 +17,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/select.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/select.md
-->

View File

@ -17,3 +17,7 @@ related:
source: /shared/influxql-v3-reference/show.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/show.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/subqueries.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/subqueries.md
-->

View File

@ -16,3 +16,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/time-and-timezone.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/time-and-timezone.md
-->

View File

@ -15,3 +15,7 @@ list_code_example: |
source: /shared/influxql-v3-reference/where.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/where.md
-->

View File

@ -1,7 +1,7 @@
---
title: JOIN clause
description: >
Use the `JOIN` clause to join to data from different tables together.
Use the `JOIN` clause to join together data from different tables.
menu:
influxdb_clustered:
name: JOIN clause

View File

@ -3,7 +3,7 @@ title: SQL comparison operators
list_title: Comparison operators
description: >
Comparison operators evaluate the relationship between the left and right
operands and returns `true` or `false`.
operands and return `true` or `false`.
menu:
influxdb_clustered:
name: Comparison operators

View File

@ -0,0 +1,12 @@
---
title: InfluxDB Pro reference documentation
description: >
Reference documentation for InfluxDB Pro including updates,
API documentation, tools, syntaxes, and more.
menu:
influxdb_pro:
name: Reference
weight: 20
---
{{< children >}}

View File

@ -0,0 +1,17 @@
---
title: InfluxQL reference documentation
description: >
InfluxQL is an SQL-like query language for interacting with data in InfluxDB.
menu:
influxdb_pro:
parent: Reference
name: InfluxQL reference
identifier: influxql-reference
weight: 102
source: /shared/influxql-v3-reference/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/_index.md
-->

View File

@ -0,0 +1,18 @@
---
title: InfluxQL feature support
description: >
InfluxQL is being rearchitected to work with the InfluxDB 3.0 storage engine.
This process is ongoing and some InfluxQL features are still being implemented.
This page provides information about the current implementation status of
InfluxQL features.
menu:
influxdb_pro:
parent: influxql-reference
weight: 220
source: /shared/influxql-v3-reference/feature-support.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/feature-support.md
-->

View File

@ -0,0 +1,17 @@
---
title: View InfluxQL functions
description: >
Aggregate, select, transform, and predict data with InfluxQL functions.
menu:
influxdb_pro:
name: InfluxQL functions
parent: influxql-reference
identifier: influxql-functions
weight: 208
source: /shared/influxql-v3-reference/functions/_index.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/_index.md
-->

View File

@ -0,0 +1,19 @@
---
title: InfluxQL aggregate functions
list_title: Aggregate functions
description: >
Use InfluxQL aggregate functions to aggregate your time series data.
menu:
influxdb_pro:
name: Aggregates
parent: influxql-functions
weight: 205
related:
- /influxdb/pro/query-data/influxql/aggregate-select/
source: /shared/influxql-v3-reference/functions/aggregates.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/aggregates.md
-->

View File

@ -0,0 +1,17 @@
---
title: InfluxQL date and time functions
list_title: Date and time functions
description: >
Use InfluxQL date and time functions to perform time-related operations.
menu:
influxdb_pro:
name: Date and time
parent: influxql-functions
weight: 206
source: /shared/influxql-v3-reference/functions/date-time.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/date-time.md
-->

View File

@ -0,0 +1,19 @@
---
title: InfluxQL miscellaneous functions
list_title: Miscellaneous functions
description: >
Use InfluxQL miscellaneous functions to perform different operations in
InfluxQL queries.
menu:
influxdb_pro:
name: Miscellaneous
identifier: influxql-misc-functions
parent: influxql-functions
weight: 206
source: /shared/influxql-v3-reference/functions/misc.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/misc.md
-->

View File

@ -0,0 +1,19 @@
---
title: InfluxQL selector functions
list_title: Selector functions
description: >
Use InfluxQL selector functions to select specific points from your time series data.
menu:
influxdb_pro:
name: Selectors
parent: influxql-functions
weight: 205
related:
- /influxdb/pro/query-data/influxql/aggregate-select/
source: /shared/influxql-v3-reference/functions/selectors.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/selectors.md
-->

View File

@ -0,0 +1,19 @@
---
title: InfluxQL analysis functions
list_title: Technical analysis functions
description: >
Use technical analysis functions to apply algorithms to your time series data.
menu:
influxdb_pro:
name: Technical analysis
parent: influxql-functions
weight: 205
# None of these functions work yet so listing as draft
draft: true
source: /shared/influxql-v3-reference/functions/technical-analysis.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/technical-analysis.md
-->

View File

@ -0,0 +1,17 @@
---
title: InfluxQL transformation functions
list_title: Transformation functions
description: >
Use transformation functions to modify and return values in each row of queried data.
menu:
influxdb_pro:
name: Transformations
parent: influxql-functions
weight: 205
source: /shared/influxql-v3-reference/functions/transformations.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/functions/transformations.md
-->

View File

@ -0,0 +1,22 @@
---
title: GROUP BY clause
description: >
Use the `GROUP BY` clause to group data by one or more specified
[tags](/influxdb/pro/reference/glossary/#tag) or into specified time intervals.
menu:
influxdb_pro:
name: GROUP BY clause
identifier: influxql-group-by
parent: influxql-reference
weight: 203
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] GROUP BY group_expression[, ..., group_expression_n]
```
source: /shared/influxql-v3-reference/group-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/group-by.md
-->

View File

@ -0,0 +1,15 @@
---
title: InfluxQL internals
description: Read about the implementation of InfluxQL.
menu:
influxdb_pro:
name: InfluxQL internals
parent: influxql-reference
weight: 219
source: /shared/influxql-v3-reference/internals.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/internals.md
-->

View File

@ -0,0 +1,22 @@
---
title: LIMIT and SLIMIT clauses
description: >
Use `LIMIT` to limit the number of **rows** returned per InfluxQL group.
Use `SLIMIT` to limit the number of [series](/influxdb/pro/reference/glossary/#series)
returned in query results.
menu:
influxdb_pro:
name: LIMIT and SLIMIT clauses
parent: influxql-reference
weight: 206
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] [GROUP_BY_clause] [ORDER_BY_clause] LIMIT row_N SLIMIT series_N
```
source: /shared/influxql-v3-reference/limit-and-slimit.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/limit-and-slimit.md
-->

View File

@ -0,0 +1,18 @@
---
title: InfluxQL math operators
descriptions: >
Use InfluxQL mathematical operators to perform mathematical operations in
InfluxQL queries.
menu:
influxdb_pro:
name: Math operators
parent: influxql-reference
identifier: influxql-mathematical-operators
weight: 215
source: /shared/influxql-v3-reference/math-operators.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/math-operators.md
-->

View File

@ -0,0 +1,23 @@
---
title: OFFSET and SOFFSET clauses
description: >
Use `OFFSET` to specify the number of [rows](/influxdb/pro/reference/glossary/#series)
to skip in each InfluxQL group before returning results.
Use `SOFFSET` to specify the number of [series](/influxdb/pro/reference/glossary/#series)
to skip before returning results.
menu:
influxdb_pro:
name: OFFSET and SOFFSET clauses
parent: influxql-reference
weight: 207
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] [GROUP_BY_clause] [ORDER_BY_clause] [LIMIT_clause] OFFSET row_N [SLIMIT_clause] SOFFSET series_N
```
source: /shared/influxql-v3-reference/offset-and-soffset.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/offset-and-soffset.md
-->

View File

@ -0,0 +1,22 @@
---
title: ORDER BY clause
list_title: ORDER BY clause
description: >
Use the `ORDER BY` clause to sort data by time in ascending or descending order.
menu:
influxdb_pro:
name: ORDER BY clause
identifier: influxql-order-by
parent: influxql-reference
weight: 204
list_code_example: |
```sql
SELECT_clause FROM_clause [WHERE_clause] [GROUP_BY_clause] ORDER BY time [DESC|ASC]
```
source: /shared/influxql-v3-reference/order-by.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/order-by.md
-->

View File

@ -0,0 +1,26 @@
---
title: Quotation
description: >
Single quotation marks (`'`) are used in the string literal syntax.
Double quotation marks (`"`) are used to quote identifiers.
menu:
influxdb_pro:
name: Quotation
identifier: influxql-quotation
parent: influxql-reference
weight: 214
list_code_example: |
```sql
-- String literal
'I am a string'
-- Quoted identifier
"this-is-an-identifier"
```
source: /shared/influxql-v3-reference/quoting.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/quoting.md
-->

View File

@ -0,0 +1,22 @@
---
title: Regular expressions
list_title: Regular expressions
description: >
Use `regular expressions` to match patterns in your data.
menu:
influxdb_pro:
name: Regular expressions
identifier: influxql-regular-expressions
parent: influxql-reference
weight: 213
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>/
```
source: /shared/influxql-v3-reference/regular-expressions.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/regular-expressions.md
-->

View File

@ -0,0 +1,23 @@
---
title: SELECT statement
list_title: SELECT statement
description: >
Use the `SELECT` statement to query data from one or more
[measurements](/influxdb/pro/reference/glossary/#measurement).
menu:
influxdb_pro:
name: SELECT statement
identifier: influxql-select-statement
parent: influxql-reference
weight: 201
list_code_example: |
```sql
SELECT <field_key>[,<field_key>,<tag_key>] FROM <measurement_name>[,<measurement_name>]
```
source: /shared/influxql-v3-reference/select.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/select.md
-->

View File

@ -0,0 +1,23 @@
---
title: InfluxQL SHOW statements
description: >
Use InfluxQL `SHOW` statements to query schema information from a database.
menu:
influxdb_pro:
name: SHOW statements
identifier: influxql-show-statements
parent: influxql-reference
weight: 207
list_code_example: |
```sql
SHOW [RETENTION POLICIES | MEASUREMENTS | FIELD KEYS | TAG KEYS | TAG VALUES]
```
related:
- /influxdb/pro/query-data/influxql/explore-schema/
source: /shared/influxql-v3-reference/show.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/show.md
-->

View File

@ -0,0 +1,22 @@
---
title: InfluxQL subqueries
description: >
An InfluxQL subquery is a query nested in the `FROM` clause of an InfluxQL query.
The outer query queries results returned by the inner query (subquery).
menu:
influxdb_pro:
name: Subqueries
identifier: influxql-subqueries
parent: influxql-reference
weight: 207
list_code_example: |
```sql
SELECT_clause FROM ( SELECT_statement ) [...]
```
source: /shared/influxql-v3-reference/subqueries.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/subqueries.md
-->

View File

@ -0,0 +1,22 @@
---
title: Time and time zones
description: >
Explore InfluxQL features used specifically for working with time.
Use the `tz` (time zone) clause to return the UTC offset for the specified
time zone.
menu:
influxdb_pro:
name: Time and time zones
parent: influxql-reference
weight: 208
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>')
```
source: /shared/influxql-v3-reference/time-and-timezone.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/time-and-timezone.md
-->

View File

@ -0,0 +1,21 @@
---
title: WHERE clause
description: >
Use the `WHERE` clause to filter data based on [fields](/influxdb/pro/reference/glossary/#field), [tags](/influxdb/pro/reference/glossary/#tag), and/or [timestamps](/influxdb/pro/reference/glossary/#timestamp).
menu:
influxdb_pro:
name: WHERE clause
identifier: influxql-where-clause
parent: influxql-reference
weight: 202
list_code_example: |
```sql
SELECT_clause FROM_clause WHERE <conditional_expression> [(AND|OR) <conditional_expression> [...]]
```
source: /shared/influxql-v3-reference/where.md
---
<!--
The content of this page is at /shared/influxql-v3-reference/where.md
-->

View File

@ -0,0 +1,18 @@
---
title: SQL reference documentation
description: >
Learn the SQL syntax and structure used to query InfluxDB.
menu:
influxdb_pro:
name: SQL reference
parent: Reference
weight: 101
related:
- /influxdb/pro/reference/internals/arrow-flightsql/
source: /content/shared/sql-reference/_index.md
---
<!--
The content of this page is at /content/shared/sql-reference/_index.md
-->

View File

@ -0,0 +1,20 @@
---
title: SQL data types
list_title: Data types
description: >
The InfluxDB SQL implementation supports a number of data types including 64-bit integers,
double-precision floating point numbers, strings, and more.
menu:
influxdb_pro:
name: Data types
parent: SQL reference
weight: 200
related:
- /influxdb/pro/query-data/sql/cast-types/
source: /content/shared/sql-reference/data-types.md
---
<!--
The content of this page is at /content/shared/sql-reference/data-types.md
-->

View File

@ -0,0 +1,20 @@
---
title: EXPLAIN command
description: >
The `EXPLAIN` command returns the logical and physical execution plans for the specified SQL statement.
menu:
influxdb_pro:
name: EXPLAIN command
parent: SQL reference
weight: 207
related:
- /influxdb/pro/reference/internals/query-plan/
- /influxdb/pro/query-data/execute-queries/analyze-query-plan/
- /influxdb/pro/query-data/execute-queries/troubleshoot/
source: /content/shared/sql-reference/explain.md
---
<!--
The content of this page is at /content/shared/sql-reference/explain.md
-->

View File

@ -0,0 +1,18 @@
---
title: SQL functions
list_title: Functions
description: >
Use SQL functions to transform queried values.
menu:
influxdb_pro:
name: Functions
parent: SQL reference
identifier: sql-functions
weight: 220
source: /content/shared/sql-reference/functions/_index.md
---
<!--
The content of this page is at /content/shared/sql-reference/functions/_index.md
-->

View File

@ -0,0 +1,19 @@
---
title: SQL aggregate functions
list_title: Aggregate functions
description: >
Aggregate data with SQL aggregate functions.
menu:
influxdb_pro:
name: Aggregate
parent: sql-functions
weight: 301
related:
- /influxdb/pro/query-data/sql/aggregate-select/
source: /content/shared/sql-reference/functions/aggregate.md
---
<!--
The content of this page is at /content/shared/sql-reference/functions/aggregate.md
-->

Some files were not shown because too many files have changed in this diff Show More