mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
10 lines
238 B
MySQL
10 lines
238 B
MySQL
|
DROP TABLE IF EXISTS visits;
|
||
|
CREATE TABLE visits (str String) ENGINE = MergeTree ORDER BY (str);
|
||
|
|
||
|
SELECT 1
|
||
|
FROM visits
|
||
|
ARRAY JOIN arrayFilter(t -> 1, arrayMap(x -> tuple(x), [42])) AS i
|
||
|
WHERE ((str, i.1) IN ('x', 0));
|
||
|
|
||
|
DROP TABLE visits;
|