ClickHouse/tests/queries/0_stateless/01891_not_like_partition_prune.sql

10 lines
336 B
MySQL
Raw Normal View History

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');
2021-11-09 13:31:31 +00:00
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;