Update mergetree.md

TTL examples
This commit is contained in:
Denis Zhuravlev 2019-09-06 12:28:33 -03:00 committed by GitHub
parent 908055bf1a
commit 529cffeeab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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