mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-06 22:42:22 +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;
|