Update docs/en/sql-reference/statements/detach.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
This commit is contained in:
gyuton 2021-03-12 19:11:27 +03:00 committed by GitHub
parent ed87521fcf
commit ca5e20a57d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,25 +25,10 @@ Also you can not [DROP](../../sql-reference/statements/drop.md#drop-table) the d
**Example**
Query:
Creating a table:
``` sql
CREATE TABLE test ENGINE = Log AS SELECT * FROM numbers(10);
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.
```
SELECT * FROM test;
[Original article](https://clickhouse.tech/docs/en/sql-reference/statements/detach/) <!--hide-->