Clickhouse: how to find indexed field in clickhouse SQL?

Viewed 3520

I have existing table in ClickHouse. I want to find which field is an index field. How do I do it?

2 Answers

You can use SHOW CREATE TABLE my_table; to see the primary key (index) and other settings.

You can also use

SELECT engine_full FROM system.tables;

Related