mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
11 lines
294 B
MySQL
11 lines
294 B
MySQL
|
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;
|