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

> すべてのテーブルにある既存のプロジェクションに関する情報を含むシステムテーブル。

# system.projections

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

すべてのテーブルに存在するプロジェクションの情報が含まれます。

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

* `database` ([String](/ja/reference/data-types)) — データベース名。
* `table` ([String](/ja/reference/data-types)) — テーブル名。
* `name` ([String](/ja/reference/data-types)) — プロジェクション名。
* `type` ([Enum8('Normal' = 0, 'Aggregate' = 1)](/ja/reference/data-types)) — プロジェクションの種類。
* `sorting_key` ([Array(String)](/ja/reference/data-types)) — プロジェクションのソートキー。
* `query` ([String](/ja/reference/data-types)) — プロジェクションのクエリ。
* `settings` ([Map(String, String)](/ja/reference/data-types)) — プロジェクションの設定。

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

```sql theme={null}
SELECT * FROM system.projections LIMIT 2 FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
database:    default
table:       landing
name:        improved_sorting_key
type:        Normal
sorting_key: ['user_id','date']
query:       SELECT * ORDER BY user_id, date
settings:     {}

Row 2:
──────
database:    default
table:       landing
name:        agg_no_key
type:        Aggregate
sorting_key: []
query:       SELECT count()
settings:     {}
```
