ClickHouse/tests/queries/0_stateless/01891_not_like_partition_prune.sql
2021-11-09 21:31:31 +08:00

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;