mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
13 lines
492 B
MySQL
13 lines
492 B
MySQL
|
drop table if exists test;
|
||
|
|
||
|
create table test (project LowCardinality(String)) engine=MergeTree() order by project;
|
||
|
insert into test values ('val1'), ('val2'), ('val3');
|
||
|
|
||
|
select sum(project in ('val1', 'val2')) from test;
|
||
|
set force_primary_key = 1;
|
||
|
select sum(project in ('val1', 'val2')) from test where project in ('val1', 'val2');
|
||
|
select count() from test where project in ('val1', 'val2');
|
||
|
select project in ('val1', 'val2') from test where project in ('val1', 'val2');
|
||
|
|
||
|
drop table test;
|