mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
11 lines
389 B
SQL
11 lines
389 B
SQL
select isConstant(1);
|
|
select isConstant([1]);
|
|
select isConstant(arrayJoin([1]));
|
|
SELECT isConstant((SELECT 1));
|
|
SELECT isConstant(x) FROM (SELECT 1 x);
|
|
SELECT '---';
|
|
SELECT isConstant(x) FROM (SELECT 1 x UNION ALL SELECT 2);
|
|
SELECT '---';
|
|
select isConstant(); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|
|
select isConstant(1, 2); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|