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 -> Can you pass a cursor into a procedure?

Can you pass a cursor into a procedure?

From: Sean <dolans_at_my-deja.com>
Date: Wed, 29 Mar 2000 18:25:30 GMT
Message-ID: <8bthq5$e05$1@nnrp1.deja.com>


Pardon me if this is a dumb question, but I can't figure out how to do this. I have a PL/SQL package that has 4 defined cursors : each returns two columns but are based on a lot of different WHERE, IN, and EXISTS clauses.

I would like to base which cursor is used based on the parameters that are passed into the calling main procedure. No problem. I can get what cursor to use. I can get the results and they successfully are inputted into a PL/SQL table. What I would like to do is make a procudure/function that I can just pass which cursor to use in, let it find the answers, and then put the results into the PL/SQL table structure.

Am I going about this wrong? I'd appreciate any help. Thanks,
Sean

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Mar 29 2000 - 12:25:30 CST

Original text of this message

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