IN 述部

IN 述部は、ある値を値のセットと比較します。

以下の 2 つの形式のいずれかにすることができます。
expression [NOT] IN  ( subselect )
expression [NOT] IN  ( value1, value2,  .... ) 

ValueN には、リテラル値または入力パラメーターのどちらかが可能です。 この式では、参照型を求めることはできません。

例: IN 述部

e.salary IN ( 10000, 15000 )
is equivalent to
( e.salary = 10000  OR  e.salary = 15000 )
e.salary IN ( select  e1.salary from EmpBean e1 where e1.dept.deptno = 10)
is equivalent to
e.salary = ANY   ( select  e1.salary from EmpBean e1 where e1.dept.deptno = 10) 
e.salary NOT IN ( select  e1.salary from EmpBean e1 where e1.dept.deptno = 10)
is equivalent to
e.salary <> ALL    ( select  e1.salary from EmpBean e1 where e1.dept.deptno = 10)

トピックのタイプを示すアイコン 概念トピック



タイム・スタンプ・アイコン 最終更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=cque_in
ファイル名:cque_in.html