mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +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;
|