mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
10 lines
722 B
MySQL
10 lines
722 B
MySQL
|
SELECT range(100) == range(0, 100) and range(0, 100) == range(0, 100, 1);
|
||
|
SELECT range(100) == range(cast('100', 'Int8')) and range(100) == range(cast('100', 'Int16')) and range(100) == range(cast('100', 'Int32')) and range(100) == range(cast('100', 'Int64'));
|
||
|
SELECT range(cast('100', 'Int8')) == range(0, cast('100', 'Int8')) and range(0, cast('100', 'Int8')) == range(0, cast('100', 'Int8'), 1) and range(0, cast('100', 'Int8')) == range(0, cast('100', 'Int8'), cast('1', 'Int8'));
|
||
|
SELECT range(-1, 1);
|
||
|
SELECT range(-1, 1, 2);
|
||
|
SELECT range(1,1);
|
||
|
SELECT range(5, 0, -1);
|
||
|
SELECT range(5, -1, -1);
|
||
|
SELECT range(1, 257, 65535);
|
||
|
SELECT range(cast(number - 5, 'Int8'), cast(number + 5, 'Int8')) from system.numbers limit 10;
|