mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 17:20:50 +00:00
updated attach.md
This commit is contained in:
parent
53fd7cb8a8
commit
f89247d7bd
@ -17,4 +17,8 @@ If the table was previously detached ([DETACH](../../sql-reference/statements/de
|
|||||||
ATTACH TABLE [IF NOT EXISTS] [db.]name [ON CLUSTER cluster]
|
ATTACH TABLE [IF NOT EXISTS] [db.]name [ON CLUSTER cluster]
|
||||||
```
|
```
|
||||||
|
|
||||||
This query is used when starting the server. The server stores table metadata as files with `ATTACH` queries, which it simply runs at launch (with the exception of system tables, which are explicitly created on the server).
|
This query is used when starting the server. The server stores table metadata as files with `ATTACH` queries, which it simply runs at launch (with the exception of some system tables, which are explicitly created on the server).
|
||||||
|
|
||||||
|
If the table was detached permanently, it won't be reattached at the server start, so you need to use `ATTACH` query explicitly.
|
||||||
|
|
||||||
|
[Original article](https://clickhouse.tech/docs/en/sql-reference/statements/attach/) <!--hide-->
|
||||||
|
Loading…
Reference in New Issue
Block a user