mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
10 lines
722 B
SQL
10 lines
722 B
SQL
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; |