mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
11 lines
294 B
SQL
11 lines
294 B
SQL
DROP TABLE IF EXISTS t_array_index;
|
|
|
|
CREATE TABLE t_array_index (n Nested(key String, value String))
|
|
ENGINE = MergeTree ORDER BY n.key;
|
|
|
|
INSERT INTO t_array_index VALUES (['a', 'b'], ['c', 'd']);
|
|
|
|
SELECT * FROM t_array_index ARRAY JOIN n WHERE n.key = 'a';
|
|
|
|
DROP TABLE IF EXISTS t_array_index;
|