Back to Clickhouse

system.projections

docs/en/operations/system-tables/projections.md

26.4.1.1-new636 B
Original Source

system.projections

Contains information about existing projections in all tables.

Columns:

<!--AUTOGENERATED_START--> <!--AUTOGENERATED_END-->

Example

sql
SELECT * FROM system.projections LIMIT 2 FORMAT Vertical;
text
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:     {}