mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
9 lines
387 B
SQL
9 lines
387 B
SQL
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);
|