mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
10 lines
229 B
MySQL
10 lines
229 B
MySQL
|
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;
|