mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
Update docs/en/sql-reference/statements/detach.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
This commit is contained in:
parent
ed87521fcf
commit
ca5e20a57d
@ -25,25 +25,10 @@ Also you can not [DROP](../../sql-reference/statements/drop.md#drop-table) the d
|
|||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
Query:
|
Creating a table:
|
||||||
|
|
||||||
``` sql
|
``` sql
|
||||||
CREATE TABLE test ENGINE = Log AS SELECT * FROM numbers(10);
|
CREATE TABLE test ENGINE = Log AS SELECT * FROM numbers(10);
|
||||||
|
SELECT * FROM test;
|
||||||
DETACH TABLE test;
|
|
||||||
|
|
||||||
SELECT * FROM TEST;
|
|
||||||
```
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
``` text
|
|
||||||
Ok.
|
|
||||||
|
|
||||||
Ok.
|
|
||||||
|
|
||||||
Received exception from server (version 21.3.1):
|
|
||||||
Code: 60. DB::Exception: Received from localhost:9000. DB::Exception: Table default.TEST doesn't exist.
|
|
||||||
```
|
|
||||||
|
|
||||||
[Original article](https://clickhouse.tech/docs/en/sql-reference/statements/detach/) <!--hide-->
|
[Original article](https://clickhouse.tech/docs/en/sql-reference/statements/detach/) <!--hide-->
|
||||||
|
Loading…
Reference in New Issue
Block a user