mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
10 lines
380 B
Plaintext
10 lines
380 B
Plaintext
|
-- { echo }
|
||
|
SELECT * FROM (SELECT (SELECT * FROM system.numbers LIMIT 1 OFFSET 1) AS n, toUInt64(10 / n)) FORMAT CSV;
|
||
|
1,10
|
||
|
SELECT (SELECT * FROM system.numbers LIMIT 1 OFFSET 1) AS n, toUInt64(10 / n) FORMAT CSV;
|
||
|
1,10
|
||
|
EXPLAIN SYNTAX SELECT (SELECT * FROM system.numbers LIMIT 1 OFFSET 1) AS n, toUInt64(10 / n);
|
||
|
SELECT
|
||
|
identity(cast(0, \'UInt64\')) AS n,
|
||
|
toUInt64(10 / n)
|