From oracle-l-bounce@freelists.org  Wed Feb  2 14:20:27 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j12KKRnw018843
 for <oracle-l@orafaq.com>; Wed, 2 Feb 2005 14:20:27 -0600
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j12KKRem018839
 for <oracle-l@orafaq.com>; Wed, 2 Feb 2005 14:20:27 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4E995696BD;
 Wed,  2 Feb 2005 14:17:44 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 18779-08; Wed, 2 Feb 2005 14:17:44 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CA59F6A9AD;
 Wed,  2 Feb 2005 14:17:43 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Subject: RE: is there a way to return multiple cursors from a query
Date: Wed, 2 Feb 2005 11:16:00 -0800
Message-ID: <B5C5F99D765BB744B54FFDF35F6026210D4B032F@irvmbxw02>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: is there a way to return multiple cursors from a query
Thread-Index: AcUJWP8VQl9/VHlRRTivRKSu3OmnTwAAS0dA
From: "Daniel Wittry" <daniel.wittry@quest.com>
To: <kduret@starkinvestments.com>,
        "Oracle L (E-mail)" <oracle-l@freelists.org>
X-OriginalArrivalTime: 02 Feb 2005 19:16:01.0424 (UTC) FILETIME=[A1FBE100:01C5095B]
X-archive-position: 15695
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: daniel.wittry@quest.com
Precedence: normal
Reply-To: daniel.wittry@quest.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=ham version=2.60
X-Spam-Level: 

Although not usually done, an Oracle function can have OUT params.

FUNCTION myFunc (in_user_id   IN     VARCHAR2,
                 io_shoesize  IN OUT NUMBER,
                 out_cursor2  OUT    myCursor)
  RETURNS myCursor
;
=20
DECLARE
  lShoesize       NUMBER :=3D 10;
  cLocalCursor    myCursor;
BEGIN
  -- WARNING: this function changes the 2nd and 3rd parameters
  ret_code :=3D myFunc(10554, lShoesize, cLocalCursor);
END;
/

For the sake of application maintenance, ensure to CLEARLY document the
side effect that the function changes parameters.

--
http://www.freelists.org/webpage/oracle-l

