Skip to main content
Adds, modifies, or removes a table comment, regardless of whether it was set before or not. The comment change is reflected in both system.tables and in the SHOW CREATE TABLE query.

Syntax

Examples

To create a table with a comment:
Query
To modify the table comment:
Query
To view the modified comment:
Query
Response
To remove the table comment:
Query
To verify that the comment was removed:
Query
Response

Caveats

For Replicated tables, the comment can be different on different replicas. Modifying the comment applies to a single replica. The feature is available since version 23.9. It does not work in previous ClickHouse versions.
Last modified on June 23, 2026