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

Home -> Community -> Usenet -> c.d.o.tools -> Re: PL/SQL table in select statement

Re: PL/SQL table in select statement

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/06/28
Message-ID: <3959E1CF.570A@yahoo.com>#1/1

Andreas Will wrote:
>
> Hi,
>
> can I use a PL/SQL table in a where clause of a select statement? Or how
> can I transform it?
> e.g.:
>
> *************************************************
> TYPE number_tabletype IS
> TABLE OF NUMBER INDEX BY BINARY_INTEGER;
>
> fid_plsql_table number_tabletype;
>
> fid_plsql_table(1) = 123;
> fid_plsql_table(2) = 456;
> [...]
>
> CURSOR fid_cursor IS
> SELECT * FROM fid_table
> WHERE fid IN fid_plsql_table
> [...]
> *************************************************
>
> tnx, Andreas
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

This may help...

http://www.jlcomp.demon.co.uk/v7arrays.html

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

We are born naked, wet and hungry...then things get worse
Received on Wed Jun 28 2000 - 00:00:00 CDT

Original text of this message

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