Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2006, 12:19 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Use returned cursor in another PL/SQL proc

hi all

i have a procedure like this (in package CORP_REPORT):

PROCEDURE Confronto
( IN_IDREQUEST IN NUMBER,
   CUR_1 IN OUT CORP_REPORT.TCUR_1
 )
IS
BEGIN
  ... do something ...
  OPEN CUR_1 FOR
    SELECT * from table1, table2, tableEtc..
    where <something specific> ;

END;

it works perfectly with ORACLE.NET data provider, ADO, Crystal, etc...

But I need in some case to process that data again in PL/SQL, something like:

PROCEDURE NewConfronto
( IN_IDREQUEST IN NUMBER,
   CUR_1 IN OUT CORP_REPORT.TCUR_1
 )
IS
  InternalTCUR CORP_REPORT.TCUR_1;
BEGIN

  EXEC Confronto(IN_IDREQUEST,InternalCUR);

  OPEN CUR_1 FOR
   SELECT x,y,z
    from InternalCUR
    where <..other conditions...>;
END;

How can this be done?
On the Web everyone explain how to use returned cursor OUT OF ORACLE, but not in...

Thanks
Roberto




;)





Similar Threads
Thread Thread Starter Forum Replies Last Post
PL/SQL Somesh ASP.NET 1.0 and 1.1 Basics 7 December 15th, 2006 05:49 PM
Retrieving returned value from stored proc ajit Java Databases 1 August 29th, 2006 09:49 AM
PL/SQL Cursor help Wikked Oracle 1 March 12th, 2005 01:19 AM
manipulate multiple values returned by stored proc herlenrosa Beginning VB 6 3 November 11th, 2003 06:51 AM
PL/SQL help carly_1 Oracle 1 October 19th, 2003 08:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.