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

SQL help

From: <ndpace_at_gmail.com>
Date: 12 May 2005 17:46:05 -0700
Message-ID: <1115945165.539929.280120@f14g2000cwb.googlegroups.com>


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 Received on Thu May 12 2005 - 19:46:05 CDT

Original text of this message

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