File tree Expand file tree Collapse file tree
cn/sql-reference/10-sql-commands/00-ddl/17-pipe
en/sql-reference/10-sql-commands/00-ddl/17-pipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"label" :" Pipe" ,"position" :17 }
1+ {
2+ "label" : " Pipe" ,
3+ "position" : 17
4+ }
Original file line number Diff line number Diff line change 1+ ---
2+ title : CREATE PIPE
3+ sidebar_position : 1
4+ ---
5+
6+ 创建一个基于 ` COPY INTO <table> ` 语句的 pipe。
7+
8+ ## 语法
9+
10+ ``` sql
11+ CREATE PIPE [ IF NOT EXISTS ] < name>
12+ [ AUTO_INGEST = TRUE ]
13+ [ COMMENT = ' <comment>' | COMMENTS = ' <comment>' ]
14+ AS
15+ COPY INTO < table> ...
16+ ```
17+
18+ ## 参数
19+
20+ | 参数 | 说明 |
21+ | -----------| -------------|
22+ | ` IF NOT EXISTS ` | 可选。如果 pipe 已存在,则成功返回但不做修改。 |
23+ | ` AUTO_INGEST = TRUE ` | 可选。启用自动导入。 |
24+ | ` COMMENT ` / ` COMMENTS ` | 可选的 pipe 备注。 |
25+ | ` AS COPY INTO ... ` | pipe 执行的 ` COPY INTO <table> ` 语句。 |
26+
27+ ## 示例
28+
29+ ``` sql
30+ CREATE PIPE IF NOT EXISTS my_pipe
31+ AUTO_INGEST = TRUE
32+ COMMENTS = ' load staged files into target table'
33+ AS
34+ COPY INTO my_table
35+ FROM @my_stage;
36+ ```
Original file line number Diff line number Diff line change 11---
22title : Pipe
33---
4+
5+ Databend 中导入管道相关的 SQL 命令。
6+
7+ ## 命令参考
8+
49| 命令 | 描述 |
510| ---------| -------------|
11+ | [ CREATE PIPE] ( create-pipe.md ) | 创建基于 ` COPY INTO ` 的 pipe |
612| [ DESCRIBE PIPE] ( describe-pipe.md ) | 显示 pipe 属性 |
713| [ DROP PIPE] ( drop-pipe.md ) | 删除 pipe |
Original file line number Diff line number Diff line change 1- {"label" :" Pipe" ,"position" :17 }
1+ {
2+ "label" : " Pipe" ,
3+ "position" : 17
4+ }
Original file line number Diff line number Diff line change 1+ ---
2+ title : CREATE PIPE
3+ sidebar_position : 1
4+ ---
5+
6+ Creates a pipe backed by a ` COPY INTO <table> ` statement.
7+
8+ ## Syntax
9+
10+ ``` sql
11+ CREATE PIPE [ IF NOT EXISTS ] < name>
12+ [ AUTO_INGEST = TRUE ]
13+ [ COMMENT = ' <comment>' | COMMENTS = ' <comment>' ]
14+ AS
15+ COPY INTO < table> ...
16+ ```
17+
18+ ## Parameters
19+
20+ | Parameter | Description |
21+ | -----------| -------------|
22+ | ` IF NOT EXISTS ` | Optional. Succeeds without changes if the pipe already exists. |
23+ | ` AUTO_INGEST = TRUE ` | Optional. Enables automatic ingestion. |
24+ | ` COMMENT ` / ` COMMENTS ` | Optional pipe comment. |
25+ | ` AS COPY INTO ... ` | The ` COPY INTO <table> ` statement executed by the pipe. |
26+
27+ ## Example
28+
29+ ``` sql
30+ CREATE PIPE IF NOT EXISTS my_pipe
31+ AUTO_INGEST = TRUE
32+ COMMENTS = ' load staged files into target table'
33+ AS
34+ COPY INTO my_table
35+ FROM @my_stage;
36+ ```
Original file line number Diff line number Diff line change 11---
22title : Pipe
33---
4+
5+ Pipe-related SQL commands for ingestion pipelines in Databend.
6+
7+ ## Command Reference
8+
49| Command | Description |
510| ---------| -------------|
11+ | [ CREATE PIPE] ( create-pipe.md ) | Creates a pipe backed by a ` COPY INTO ` statement |
612| [ DESCRIBE PIPE] ( describe-pipe.md ) | Shows pipe properties |
713| [ DROP PIPE] ( drop-pipe.md ) | Deletes a pipe |
You can’t perform that action at this time.
0 commit comments