Skip to main content

[ NOT ] IN

Checks whether a value is (or is not) in an explicit list.

Syntax

<value> [ NOT ] IN (<value1>, <value2> ...)

Examples

SELECT 1 NOT IN (2, 3);

┌────────────────┐
1 not in(2, 3)
├────────────────┤
true
└────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today