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 -> PL/SQL procedure and input array parameter

PL/SQL procedure and input array parameter

From: Matt Houseman <mhousema_at_ix.netcom.com>
Date: Wed, 29 Dec 1999 18:30:47 -0800
Message-ID: <84eg03$91c$1@nntp4.atl.mindspring.net>


All,

Is there an easy way to bind an input array into the where clause of a SQL statement?

For example:

TYPE g_foo_array IS TABLE OF foo.foo_id%TYPE INDEX BY BINARY_INTEGER;

PROCEDURE foo ( foo_array IN g_foo_array ) IS

    CURSOR cur_find_fnd_acct_per IS

        select bar from foo where foo_id IN foo_array;

BEGIN
    ...
END; Thanks in advance,
Matt Houseman Received on Wed Dec 29 1999 - 20:30:47 CST

Original text of this message

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