Contents Index LIKE conditions EXISTS conditions

ASA SQL Reference
  SQL Language Elements
    Search conditions

IN conditions


The syntax for IN conditions is as follows:

expression [ NOT ] IN { ( subquery ) | ( expression2 ) | ( value-expr, ... ) }

An IN condition, without the NOT keyword, evaluates according to the following rules:

The NOT keyword interchanges TRUE and FALSE.

The search condition expression INvalues ) is identical to the search condition expression = ANY ( values ). The search condition expression NOT INvalues ) is identical to the search condition expression <> ALL ( values ).

The value-expr arguments are expressions that take on a single value, which may be a string, a number, a date, or any other SQL datatype.

Standards and compatibility 

Contents Index LIKE conditions EXISTS conditions