mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
8 lines
216 B
SQL
8 lines
216 B
SQL
DROP TABLE IF EXISTS t;
|
|
CREATE TABLE t (A Array(Int64)) Engine = MergeTree ORDER BY tuple();
|
|
INSERT INTO t VALUES ([1,2,3]), ([4,5,6]), ([7,8,9]);
|
|
|
|
SELECT * FROM t PREWHERE arrayExists(x -> x = 5, A);
|
|
|
|
DROP TABLE t;
|