mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Update mergetree.md
TTL examples
This commit is contained in:
parent
908055bf1a
commit
529cffeeab
@ -402,13 +402,13 @@ ENGINE = MergeTree
|
||||
PARTITION BY toYYYYMM(d)
|
||||
ORDER BY d;
|
||||
|
||||
// adding TTL to a column of an existing table
|
||||
-- adding TTL to a column of an existing table
|
||||
|
||||
ALTER TABLE example_table
|
||||
MODIFY COLUMN
|
||||
c String TTL d + interval 1 day;
|
||||
|
||||
// altering TTL of the column
|
||||
-- altering TTL of the column
|
||||
|
||||
ALTER TABLE example_table
|
||||
MODIFY COLUMN
|
||||
|
Loading…
Reference in New Issue
Block a user