> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 現在のユーザーが利用可能なデータベースに関する情報を含むシステムテーブル。

# system.databases

<div id="description">
  ## 説明
</div>

現在のユーザーが利用できるデータベースに関する情報が含まれます。

<div id="columns">
  ## カラム
</div>

* `name` ([String](/ja/reference/data-types/index)) — データベース名。
* `engine` ([String](/ja/reference/data-types/index)) — データベースエンジン。
* `data_path` ([String](/ja/reference/data-types/index)) — データパス。
* `metadata_path` ([String](/ja/reference/data-types/index)) — メタデータパス。
* `uuid` ([UUID](/ja/reference/data-types/index)) — データベースの UUID。
* `engine_full` ([String](/ja/reference/data-types/index)) — データベースエンジンのパラメーター。
* `comment` ([String](/ja/reference/data-types/index)) — データベースコメント。
* `is_external` ([UInt8](/ja/reference/data-types/index)) — データベースが外部データベースかどうか (例: PostgreSQL/DataLakeCatalog) 。

このシステムテーブルの `name` カラムは、`SHOW DATABASES` クエリの実装に使用されます。

<div id="example">
  ## 例
</div>

データベースを作成します。

```sql title="Query" theme={null}
CREATE DATABASE test;
```

ユーザーがアクセスできるすべてのデータベースを確認します。

```sql title="Query" theme={null}
SELECT * FROM system.databases;
```

```text title="Response" theme={null}
┌─name────────────────┬─engine─────┬─data_path────────────────────┬─metadata_path─────────────────────────────────────────────────────────┬─uuid─────────────────────────────────┬─engine_full────────────────────────────────────────────┬─comment─┐
│ INFORMATION_SCHEMA  │ Memory     │ /data/clickhouse_data/       │                                                                       │ 00000000-0000-0000-0000-000000000000 │ Memory                                                 │         │
│ default             │ Atomic     │ /data/clickhouse_data/store/ │ /data/clickhouse_data/store/f97/f97a3ceb-2e8a-4912-a043-c536e826a4d4/ │ f97a3ceb-2e8a-4912-a043-c536e826a4d4 │ Atomic                                                 │         │
│ information_schema  │ Memory     │ /data/clickhouse_data/       │                                                                       │ 00000000-0000-0000-0000-000000000000 │ Memory                                                 │         │
│ replicated_database │ Replicated │ /data/clickhouse_data/store/ │ /data/clickhouse_data/store/da8/da85bb71-102b-4f69-9aad-f8d6c403905e/ │ da85bb71-102b-4f69-9aad-f8d6c403905e │ Replicated('some/path/database', 'shard1', 'replica1') │         │
│ system              │ Atomic     │ /data/clickhouse_data/store/ │ /data/clickhouse_data/store/b57/b5770419-ac7a-4b67-8229-524122024076/ │ b5770419-ac7a-4b67-8229-524122024076 │ Atomic                                                 │         │
│ test                │ Atomic     │ /data/clickhouse_data/store/ │ /data/clickhouse_data/store/2a1/2a1b3c4d-5e6f-7890-abcd-ef1234567890/ │ 2a1b3c4d-5e6f-7890-abcd-ef1234567890 │ Atomic                                                 │         │
└─────────────────────┴────────────┴──────────────────────────────┴───────────────────────────────────────────────────────────────────────┴──────────────────────────────────────┴────────────────────────────────────────────────────────┴─────────┘
```
