2020-12-23 19:36:10 +00:00
|
|
|
-- { 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
|
2021-08-07 10:12:59 +00:00
|
|
|
identity(_CAST(0, \'Nullable(UInt64)\')) AS n,
|
2020-12-23 19:36:10 +00:00
|
|
|
toUInt64(10 / n)
|
2021-02-10 21:25:50 +00:00
|
|
|
SELECT * FROM (WITH (SELECT * FROM system.numbers LIMIT 1 OFFSET 1) AS n, toUInt64(10 / n) as q SELECT * FROM system.one WHERE q > 0);
|
|
|
|
0
|