我试图用下面的语法在现有表上添加索引。
在…..(……)中创建表联系人。。。。。。。域字符串、主题字符串、类别字符串……)engine=mergetree partition by category order by(topic,domain)settings index\粒度=8192
I want to create an index on the topic column (granularity is 6020)
tried syntax from the documentation but unable to understand since there is no examples explaining the fields in it.
谁能快点帮我一下吗。
1条答案
按热度按时间z4iuyo4d1#
是的,你可以。
以下操作可用:
https://clickhouse.tech/docs/en/sql-reference/statements/alter/index/