Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Using IN predicate in PL/SQL

Using IN predicate in PL/SQL

From: R Chin <rchin_at_panix.com>
Date: Thu, 28 Feb 2002 12:23:49 -0500
Message-ID: <a5lp3p$nmg$1@reader2.panix.com>


In PL/SQL I have constructed a variable (called v_Pool) with the value ('ABC','DEF','GHI') to be used in the where clause of dynamic sql

The following code does not work...please help

if v_test IN v_Pool then
........;
end if;

Also how do I specify v_Pool in a cursor

cursor my_cur is
select *
from my_table
where myfield IN ???

Thanks Received on Thu Feb 28 2002 - 11:23:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US