mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 22:22:00 +00:00
10 lines
336 B
SQL
10 lines
336 B
SQL
drop table if exists test;
|
|
|
|
create table test (a String) Engine MergeTree order by a partition by a;
|
|
insert into test values('1'), ('1.1'), ('1.2'), ('1.12');
|
|
|
|
select * from test where a like '1%1' order by a;
|
|
select * from test where a not like '1%1' order by a;
|
|
select * from test where a not like '1%2' order by a;
|
|
drop table test;
|