mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
13 lines
502 B
SQL
13 lines
502 B
SQL
drop table if exists alter_ttl;
|
|
|
|
create table alter_ttl(i Int) engine = MergeTree order by i ttl toDate('2020-05-05');
|
|
alter table alter_ttl add column s String;
|
|
alter table alter_ttl modify column s String ttl toDate('2020-01-01');
|
|
show create table alter_ttl;
|
|
drop table alter_ttl;
|
|
|
|
create table alter_ttl(d Date, s String) engine = MergeTree order by d ttl d + interval 1 month;
|
|
alter table alter_ttl modify column s String ttl d + interval 1 day;
|
|
show create table alter_ttl;
|
|
drop table alter_ttl;
|