mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
DOCSUP-5822: IN oper - supports diff types.
This commit is contained in:
parent
8efee9ed9a
commit
5647f0eb8c
@ -17,7 +17,7 @@ Don’t list too many values explicitly (i.e. millions). If a data set is large
|
||||
|
||||
The right side of the operator can be a set of constant expressions, a set of tuples with constant expressions (shown in the examples above), or the name of a database table or SELECT subquery in brackets.
|
||||
|
||||
ClickHouse allows different types inside `IN` subquery. For left hand side it applies type conversion to the type of right hand side.
|
||||
ClickHouse allows different types inside `IN` subquery. For left hand side it applies type conversion to the type of right hand side with [accurateCastOrNull](../functions/type-conversion-functions.md#type_conversion_function-accurate-cast_or_null).
|
||||
|
||||
**Example**
|
||||
|
||||
|
@ -17,6 +17,8 @@ SELECT (CounterID, UserID) IN ((34, 123), (101500, 456)) FROM ...
|
||||
|
||||
В качестве правой части оператора может быть множество константных выражений, множество кортежей с константными выражениями (показано в примерах выше), а также имя таблицы или подзапрос SELECT в скобках.
|
||||
|
||||
ClickHouse допускает различные типы внутри подзапроса `IN`. Для левой стороны он применяет преобразование к типу правой стороны с помощью [accurateCastOrNull](../functions/type-conversion-functions.md#type_conversion_function-accurate-cast_or_null).
|
||||
|
||||
**Пример**
|
||||
|
||||
Запрос:
|
||||
|
Loading…
Reference in New Issue
Block a user