Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re:Returing a COMPLETE recordset from a stored procedure

Re:Returing a COMPLETE recordset from a stored procedure

From: <dgoulet_at_vicr.com>
Date: Wed, 17 Jul 2002 11:58:26 -0800
Message-ID: <F001.0049A86C.20020717115826@fatcity.com>


Hannah,

    It can be done. The following sql statement returns a pile of data from a procedure at one time.

SELECT * FROM
            THE(SELECT CAST(gatekeeper.fail_why('&serial','&model') AS atemgr.GATEKEEPER_INFO_TBL) FROM DUAL)

            WHERE MODEL_NUMBER IS NOT NULL; If you want more of the specifics I can provide.

Dick Goulet

____________________Reply Separator____________________
Author: johanna.doran_at_sungard.com
Date:       7/17/2002 11:23 AM

Ok,  

    Maybe its just been a rough day, but looking at the docs (PLSQL Devleopers Guide), I only see that I can return only a record at a time.  

But say I want to return a complete recordset from a stored procedure to a C program, what would be my retrun type? Can I use a collection?  

The docs aren't clear on this and only show examples of retrunung a single rowtype.  

Any links (except to metalink - I dont have access) would be helpful,  

Thanks,  

    Hannah

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002>Ok,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=551091818-17072002>&nbsp;&nbsp;&nbsp;
Maybe its just been a rough day, but looking at the docs (PLSQL Devleopers Guide), I only see that I can return only a record at a time.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=551091818-17072002>But say I want to
return a complete recordset from a stored procedure to&nbsp;a C program, what would be my retrun type?&nbsp; Can I use a collection?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=551091818-17072002>The docs aren't
clear on this and only show examples of retrunung a single rowtype.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=551091818-17072002>Any links (except to

metalink - I dont have access) would be helpful,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN

class=551091818-17072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=551091818-17072002>&nbsp;&nbsp;&nbsp;
Hannah</SPAN></FONT></DIV></BODY></HTML>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: dgoulet_at_vicr.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Jul 17 2002 - 14:58:26 CDT

Original text of this message

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