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

Home -> Community -> Usenet -> c.d.o.server -> Re: OCI - a tough one...

Re: OCI - a tough one...

From: Wei Du <weidu_at_zdmis.zd.com>
Date: 1997/04/04
Message-ID: <01bc413f$5ea5cac0$5422289b@Panda.zd.com>#1/1

Peter vR. Cooper <pvrc_at_vrcis.com> wrote in article <334522A4.170D_at_vrcis.com>...
> Dan Shechter wrote:
> >
> > Greetings OCI wizards...
> >
> > Does anyone know how to bind an array of input variables while binding
 a
> > different array of output variables ?
> >
> > Or in english: I need to read many rows from a table, while my
 condition
> > contains a field with many possible values.
> >
> > I can't just use a simple SQL statement like this:
> > "select my_field from my_table where my_other_field in ...."
> > because SQL statements are limited in size to 64KB, while my condition
> > easily surpasses that limit.
> >
> > If this (binding *both* input and output arrays) is not possible via
> > OCI, can someone tell me if and how can it be done using PL/SQL?
> >
> > I need of desparate help.
> > Dan.
>
> If I understand the problem, I think you may have to serially
> process more than one set of where clause variables (messy) and
> reparse and bind the variables on every set of where clause conditions.
>

How about using temporary table to hold all your conditions, then join that temporary in a sub query. Received on Fri Apr 04 1997 - 00:00:00 CST

Original text of this message

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