ClickHouse/docs/en/operations/system-tables/detached_tables.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Markdown
Raw Normal View History

2024-06-14 12:31:52 +00:00
---
slug: /en/operations/system-tables/detached_tables
---
# detached_tables
Contains information of each detached table.
Columns:
- `database` ([String](../../sql-reference/data-types/string.md)) — The name of the database the table is in.
2024-06-21 16:33:09 +00:00
- `table` ([String](../../sql-reference/data-types/string.md)) — Table name.
2024-06-14 12:31:52 +00:00
- `uuid` ([UUID](../../sql-reference/data-types/uuid.md)) — Table uuid (Atomic database).
- `metadata_path` ([String](../../sql-reference/data-types/string.md)) - Path to the table metadata in the file system.
2024-06-21 16:33:09 +00:00
- `is_permanently` ([UInt8](../../sql-reference/data-types/int-uint.md)) - Flag indicates that the table was detached PERMANENTLY.
2024-06-14 12:31:52 +00:00
**Example**
```sql
SELECT * FROM system.detached_tables FORMAT Vertical;
```
```text
Row 1:
──────
database: base
2024-06-21 16:33:09 +00:00
table: t1
2024-06-14 12:31:52 +00:00
uuid: 81b1c20a-b7c6-4116-a2ce-7583fb6b6736
metadata_path: /var/lib/clickhouse/store/461/461cf698-fd0b-406d-8c01-5d8fd5748a91/t1.sql
is_permanently: 1
```