mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
10 lines
229 B
SQL
10 lines
229 B
SQL
drop table if exists x;
|
|
|
|
create table x (dt String) engine MergeTree partition by toYYYYMM(toDate(dt)) order by tuple();
|
|
|
|
insert into x values ('2022-10-01 10:10:10');
|
|
|
|
select * from x where dt like '2022-10-01%';
|
|
|
|
drop table x;
|