You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/doc/30-reference/30-sql/10-dml/dml-copy-into-table.md
+19-14Lines changed: 19 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,15 @@ title: 'COPY INTO <table>'
3
3
sidebar_label: 'COPY INTO <table>'
4
4
---
5
5
6
-
`COPY`moves data between Databend tables and object storage systems (AWS S3 compatible object storage services and Azure Blob storage).
6
+
`COPY`loads data into Databend or unloads data from Databend.
7
7
8
-
This command loads data into a table from files staged in one of the following locations:
8
+
This command loads data into a table from files in one of the following locations:
9
9
10
-
* Named internal stage, files can be staged using the [PUT to Stage](../../00-api/10-put-to-stage.md).
11
-
* Named external stage that references an external location (AWS S3 compatible object storage services and Azure Blob storage).
12
-
* External location. This includes AWS S3 compatible object storage services, Azure Blob storage, Google Cloud Storage, Huawei OBS.
10
+
* Named internal stage: Databend internal named stages. Files can be staged using the [PUT to Stage](../../00-api/10-put-to-stage.md) API.
11
+
* Named external stage: Stages created in AWS S3 compatible object storage services and Azure Blob storage.
12
+
* External location: This can be a bucket in AWS S3 compatible object storage services, Azure Blob storage, Google Cloud Storage, or Huawei OBS. The exteranl location can be also just a remote server from where you can access the file by a URL (starting with "https://...").
13
+
14
+
See Also: [COPY INTO location](dml-copy-into-location.md)
13
15
14
16
## Syntax
15
17
@@ -123,10 +125,10 @@ externalLocation ::=
123
125
'https://<url>'
124
126
```
125
127
126
-
Especially, HTTP supports glob patterns. For example, use
128
+
Please note that, HTTP supports glob patterns. For example, use
127
129
128
-
-`ontime_200{6,7,8}.csv` to represents `ontime_2006.csv`,`ontime_2007.csv`,`ontime_20080.csv`.
129
-
-`ontime_200[6-8].csv` to represents `ontime_2006.csv`,`ontime_2007.csv`,`ontime_20080.csv`.
130
+
-`ontime_200{6,7,8}.csv` to represents `ontime_2006.csv`,`ontime_2007.csv`,`ontime_2008.csv`.
131
+
-`ontime_200[6-8].csv` to represents `ontime_2006.csv`,`ontime_2007.csv`,`ontime_2008.csv`.
0 commit comments