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 -> Re: SQL help

Re: SQL help

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Thu, 12 May 2005 20:17:38 -0700
Message-ID: <1115954004.215408@yasure>


ndpace_at_gmail.com wrote:

> I am creating a package for Oracle 8i. I need to pass a variable in
> and use that in the SQL statement IN clause. This worked for a simple
> equal statement but not for the IN.
>
> 'select * from CUSTOMERS where CUSTOMERS_CODE in (:x1) ' USING IDS;
>
> where IDS is VARCHAR2 and = 999,1000
>
> Thanks in advance

http://www.psoug.org
click on Morgan's Library
click on Conditions
scroll down to the "COMPLEX IN" Demo

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Thu May 12 2005 - 22:17:38 CDT

Original text of this message

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