mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
11 lines
555 B
SQL
11 lines
555 B
SQL
drop table if exists lc_00688;
|
|
create table lc_00688 (str StringWithDictionary, val UInt8WithDictionary) engine = MergeTree order by tuple();
|
|
insert into lc_00688 values ('a', 1), ('b', 2);
|
|
select str, str in ('a', 'd') from lc_00688;
|
|
select val, val in (1, 3) from lc_00688;
|
|
select str, str in (select arrayJoin(['a', 'd'])) from lc_00688;
|
|
select val, val in (select arrayJoin([1, 3])) from lc_00688;
|
|
select str, str in (select str from lc_00688) from lc_00688;
|
|
select val, val in (select val from lc_00688) from lc_00688;
|
|
drop table if exists lc_00688;
|