WebSphere Application Server for i5/OS, Version 6.1   
             オペレーティング・システム: i5/OS

             目次と検索結果のパーソナライズ化

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)



関連概念
EJB 照会言語
WHERE 文節
関連タスク
EJB 照会の使用
概念トピック    

ご利用条件 | フィードバック

最終更新: Jan 21, 2008 5:46:14 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.iseries.doc/info/iseries/ae/cque_in.html