📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

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 │ └────────────────┘

Was this page helpful?