mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Yet another header.
Other changes.
This commit is contained in:
parent
c7b520aabc
commit
42c5cd80d9
@ -33,14 +33,14 @@ If the table was detached permanently, it won't be reattached at the server star
|
||||
|
||||
### With Specified Path to Table Data {#attach-with-specified-path}
|
||||
|
||||
The query creates a new table with provided structure and attaches table data from the provided directory in `user_files`.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
ATTACH TABLE name FROM 'path/to/data/' (col1 Type1, ...)
|
||||
```
|
||||
|
||||
It creates new table with provided structure and attaches table data from provided directory in `user_files`.
|
||||
|
||||
**Example**
|
||||
|
||||
Query:
|
||||
@ -59,16 +59,21 @@ Result:
|
||||
└──────┴────┘
|
||||
```
|
||||
|
||||
**With specify table UUID** (Only for `Atomic` database)
|
||||
### With Specified Table UUID {#attach-with-specified-uuid}
|
||||
|
||||
This query creates a new table with provided structure and attaches data from the table with the specified UUID.
|
||||
It is supported by the [Atomic](../../engines/database-engines/atomic.md) database engine.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
ATTACH TABLE name UUID '<uuid>' (col1 Type1, ...)
|
||||
```
|
||||
|
||||
It creates new table with provided structure and attaches data from table with the specified UUID.
|
||||
|
||||
## Attach Existing Dictionary {#attach-existing-dictionary}
|
||||
|
||||
Attaches a previously detached dictionary.
|
||||
|
||||
**Syntax**
|
||||
|
||||
``` sql
|
||||
|
Loading…
Reference in New Issue
Block a user