Skip to content

Commit ca052b6

Browse files
committed
Update 92-attach-table.md
1 parent 381adda commit ca052b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/en/sql-reference/10-sql-commands/00-ddl/01-table/92-attach-table.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ Attaches an existing table to another one. The command moves the data and schema
2323
ATTACH TABLE <target_table_name> [ ( <column_list> ) ] '<source_table_data_URI>'
2424
CONNECTION = ( <connection_parameters> )
2525
```
26-
- `<column_list>`: An optional list of columns to include from the source table, allowing users to specify only the necessary columns instead of loading all available data. If not specified, all columns from the source table will be included.
26+
- `<column_list>`: An optional, comma-separated list of columns to include from the source table, allowing users to specify only the necessary columns instead of including all of them. If not specified, all columns from the source table will be included.
27+
28+
- Renaming an included column in the source table updates its name in the attached table, and it must be accessed using the new name.
29+
- Dropping an included column in the source table makes it inaccessible in the attached table.
30+
- Changes to non-included columns, such as renaming or dropping them in the source table, do not affect the attached table.
2731

2832
- `<source_table_data_URI>` represents the path to the source table's data. For S3-like object storage, the format is `s3://<bucket-name>/<database_ID>/<table_ID>`, for example, _s3://databend-toronto/1/23351/_, which represents the exact path to the table folder within the bucket.
2933

0 commit comments

Comments
 (0)