5

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

Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206

2 Answers2

8

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

Ivan Blinkov
  • 2,466
  • 15
  • 17
3

You can also use

SELECT engine_full FROM system.tables;

Slach
  • 1,672
  • 13
  • 21