mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
9 lines
387 B
MySQL
9 lines
387 B
MySQL
|
CREATE TEMPORARY TABLE test (`id` String, `products` Nested (`产品` Array(String), `销量` Array(Int32)));
|
||
|
|
||
|
DESCRIBE test;
|
||
|
DESCRIBE (SELECT * FROM test);
|
||
|
DESCRIBE (SELECT * FROM test ARRAY JOIN products);
|
||
|
DESCRIBE (SELECT p.`产品`, p.`销量` FROM test ARRAY JOIN products AS p);
|
||
|
SELECT * FROM test ARRAY JOIN products;
|
||
|
SELECT count() FROM (SELECT * FROM test ARRAY JOIN products);
|