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 -> variables in cursors

variables in cursors

From: Kal Khatib <kkhatib_at_cisco.com>
Date: Fri, 29 May 1998 13:06:09 -0700
Message-ID: <356F1530.F1BA947E@cisco.com>


I'm new to PLSQL..

How do I do this:
I'm trying to write a procedure that takes in 2 variables, and puts out a PL/SQL table
something like

procedure generic_get_distinct (field in varchar2, table in varchar2, OUT someting)
IS
cursor is select distinct field from table; // where field and table are variables passed into the proc.

begin
.... some code
End generic_get_distinct;

How do I get the cursor to use the values of field and table passed to it?

thank you Received on Fri May 29 1998 - 15:06:09 CDT

Original text of this message

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