Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Returning a COMPLETE record set from a stored procedure
Ok, then the question is, can I pass a REF CURSOR to a C program?
That's my problem. I know I can do it with ref cursors lets say within a package but what if I want to pass a complete recordset to a C program?
We have a programmer writing a program in C, wants us to write stored procs that return record sets to his calling program.
Makes sense. I can do it in Visual Basic just by executing code into a recordset, but straight PL/SQL and C I am unsure about.
> -----Original Message-----
> From: root_at_fatcity.com_at_SUNGARD On Behalf Of "Jamadagni, Rajendra" <Rajendra.Jamadagni_at_espn.com>
> Sent: Wednesday, July 17, 2002 3:43 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Returning a COMPLETE record set from a stored procedure
>
>
> You could return a REF cursor and then fetch from that ref cursor in your program. This situation is ideal compared to passing (around) collections.
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: johanna.doran_at_sungard.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 - 15:04:21 CDT
![]() |
![]() |