mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
10 lines
447 B
MySQL
10 lines
447 B
MySQL
|
DROP TABLE IF EXISTS test;
|
||
|
create table test (id UInt64,insid UInt64,insidvalue Nullable(UInt64), index insid_idx (insid) type bloom_filter() granularity 1, index insidvalue_idx (insidvalue) type bloom_filter() granularity 1) ENGINE=MergeTree() ORDER BY (insid,id);
|
||
|
|
||
|
insert into test values(1,1,1),(2,2,2);
|
||
|
|
||
|
select * from test where insid IN (1) OR insidvalue IN (1);
|
||
|
select * from test where insid IN (1) AND insidvalue IN (1);
|
||
|
|
||
|
DROP TABLE test;
|