Skip to main content
VeloDB Cloud 4.xยทApache Doris 3.xยท"Since X.Y" tags refer to Apache Doris versionsVersion mapping

In Operators

Descriptionโ€‹

The IN operator tests whether a value is a member of a list of values or a subquery.

Operator Introductionโ€‹

OperatorFunctionExample
INTests if it is equal to any member. Returns TRUE if so.SELECT 1 IN (SELECT 2)
NOT INTests if it is not equal to all members. Returns TRUE if so.SELECT 1 NOT IN (3, 4, 5)