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: "in" clause using binds / oo4o / asp

Re: "in" clause using binds / oo4o / asp

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Tue, 3 Feb 2004 12:59:18 -0500
Message-ID: <WZednSeKCPkCfILdRVn-vw@comcast.com>

"John" <Nothanks_at_noaddress.com> wrote in message news:Xns9484A02E9FCE6Nothanksnoaddresscom_at_127.0.0.1...
| "Jim Kennedy" <kennedy-downwithspammersfamily_at_attbi.net> wrote in
| news:hRNTb.215960$na.353560_at_attbi_s04:
|
| >>
| >> Perhaps I needed to state that the amount of values in the "IN" is
| > unknown.
| >> Hence I want to pass in an array, not a list of binds.
| >>
| >> Cheers
| > Look at asktom.oracle.com and search for varying elements in in list
| > Jim
|
| Hi Jim,
|
| Thanks for link, but nothing on there for asp / collections - it's all
| pl/sql blocks/functions/procedures :-(
|
| Cheers

john,

if you're constructing the SQL statement (in a string variable), then there's no issue, you just build the appropriate IN clause

but if you're passing an IN clause list in a single parameter to a stored procedure, then the ask-tom articles demonstrate how to a) use TABLE and CAST to convert the variable's content to PL/SQL structure usable in an IN subquery and b) create a reusable function to do the conversion

it's really an PL/SQL issue, not an ASP issue

see also my posts to the thread 'Input Array Processing' in c.d.o.misc

Received on Tue Feb 03 2004 - 11:59:18 CST

Original text of this message

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