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: Question about Passing Arrays to PLSQL

Re: Question about Passing Arrays to PLSQL

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/04/14
Message-ID: <38F6FA36.401C@yahoo.com>#1/1

billmil_at_my-deja.com wrote:
>
> How can a PLSQL function receive an incoming list and use that list in
> an SQL statement?
>
> E.g., I'd like a PLSQL function to execute an sql such as:
> select * articles where area in (list_in);
>
> where list_in would look like
> "finance, technology, cooking"
>
> (The calling java program would pass in list_in)
>
> I know I can build a statement using dynamic sql, but I'd like to avoid
> the extra parsing overhead.
>
> Any suggestions? For you java-folks, can I use a java.sql.types.array?
>
> tnanks in advance.
>
> bill milbratz
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

You can cast a pl/sql table to rows which you could then use as a subselect. You can find an example I think at:

www.jlcomp.demon.co.uk

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Fri Apr 14 2000 - 00:00:00 CDT

Original text of this message

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