Skip to content

Commit

Permalink
Merge pull request #29501 from taosdata/docs/union
Browse files Browse the repository at this point in the history
fix: union clause description error
  • Loading branch information
guanshengliang authored Jan 7, 2025
2 parents b7de052 + 1044a4a commit 981960e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/en/14-reference/03-taos-sql/06-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,15 @@ SELECT ... FROM (SELECT ... FROM ...) ...;

:::

## UNION ALL Clause
## UNION Clause

```text title=Syntax
SELECT ...
UNION ALL SELECT ...
[UNION ALL SELECT ...]
UNION [ALL] SELECT ...
[UNION [ALL] SELECT ...]
```

TDengine supports the UNION ALL operator. This means that if multiple SELECT clauses return result sets with the exact same structure (column names, column types, number of columns, order), these result sets can be combined together using UNION ALL. Currently, only the UNION ALL mode is supported, which means that duplicates are not removed during the merging process. In the same SQL statement, a maximum of 100 UNION ALLs are supported.
TDengine supports the UNION [ALL] operator. This means that if multiple SELECT clauses return result sets with the exact same structure (column names, column types, number of columns, order), these result sets can be combined together using UNION [ALL].

## SQL Examples

Expand Down
8 changes: 4 additions & 4 deletions docs/zh/14-reference/03-taos-sql/06-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,15 @@ SELECT ... FROM (SELECT ... FROM ...) ...;

:::

## UNION ALL 子句
## UNION 子句

```txt title=语法
SELECT ...
UNION ALL SELECT ...
[UNION ALL SELECT ...]
UNION [ALL] SELECT ...
[UNION [ALL] SELECT ...]
```

TDengine 支持 UNION ALL 操作符。也就是说,如果多个 SELECT 子句返回结果集的结构完全相同(列名、列类型、列数、顺序),那么可以通过 UNION ALL 把这些结果集合并到一起。目前只支持 UNION ALL 模式,也即在结果集的合并过程中是不去重的。在同一个 sql 语句中,UNION ALL 最多支持 100 个
TDengine 支持 UNION [ALL] 操作符。也就是说,如果多个 SELECT 子句返回结果集的结构完全相同(列名、列类型、列数、顺序),那么可以通过 UNION [ALL] 把这些结果集合并到一起。

## SQL 示例

Expand Down

0 comments on commit 981960e

Please sign in to comment.