IN predicate
The IN predicate compares a value or values with a set of values.
The IN predicate is supported only for Java™ application programs.
Notes:
- 1 You can have the same column name in multiple tables, but if the table is not qualified, each table must be searched for the column.
The IN predicate is equivalent to the quantified predicate as follows:
IN predicate | Equivalent quantified predicate |
---|---|
column1 IN (value1, value2, valuen) |
|
column1 NOT IN (value1, value2, valuen) |
|
Example: The following predicate is true for any row whose employee is in department D11, B01, or C01.
WORKDEPT IN ('D11', 'B01', 'C01')