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: How to get a cursor from a dynamic query within a procedure?

Re: How to get a cursor from a dynamic query within a procedure?

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 11 Apr 2006 14:24:16 -0700
Message-ID: <1144790654.178204@yasure.drizzle.com>


baroncrampantc via DBMonster.com wrote:
> Hi all,
> I want to execute a dynamic query using "EXECUTE IMMEDIATE" and return the
> result as a OUT parameter of procedure. I can not use OPEN test_cur FOR..."
> method so is there any other way to do this?
> And what about if I want to do this and return an int from that dynamic
> query as an OUT param? e.g. a SUM().
> -Thanks in advance for your help

Return an array.

And I'd like to know too ... why can't you return a REF CURSORS?

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Tue Apr 11 2006 - 16:24:16 CDT

Original text of this message

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