mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
24 lines
599 B
SQL
24 lines
599 B
SQL
SET allow_experimental_analyzer = 1;
|
|
|
|
SELECT 1 IN 1;
|
|
SELECT 1 IN (1);
|
|
SELECT 1 IN 0;
|
|
SELECT 1 IN (0);
|
|
SELECT 1 IN (1, 2);
|
|
SELECT (1, 1) IN ((1, 1), (1, 2));
|
|
SELECT (1, 1) IN ((1, 2), (1, 2));
|
|
SELECT 1 IN (((1), (2)));
|
|
|
|
SELECT '--';
|
|
|
|
SELECT 1 IN [1];
|
|
SELECT 1 IN [0];
|
|
SELECT 1 IN [1, 2];
|
|
SELECT (1, 1) IN [(1, 1), (1, 2)];
|
|
SELECT (1, 1) IN [(1, 2), (1, 2)];
|
|
|
|
SELECT (1, 2) IN 1; -- { serverError 43 }
|
|
SELECT (1, 2) IN [1]; -- { serverError 124 }
|
|
SELECT (1, 2) IN (((1, 2), (1, 2)), ((1, 2), (1, 2))); -- { serverError 43 }
|
|
SELECT (1, 2) IN [((1, 2), (1, 2)), ((1, 2), (1, 2))]; -- { serverError 43 }
|