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: ** field names of a ref cursor

RE: ** field names of a ref cursor

From: Stephane Faroult <sfaroult_at_oriolecorp.com>
Date: Mon, 26 Jan 2004 02:59:26 -0800
Message-ID: <F001.005DE257.20040126025926@fatcity.com>


AFAIK there are no PL/SQL functions to do what you want to do; they are available as OCI functions, though, but PL/SQL only implements a very small subset of what is available with OCI. An external C procedure might be an option, but only if not called too often. In my experience trying to write fully generic procedures is more often than not a recipe for unmaintainable code and hard to predict performance. I would possibly be simpler to identify the various cases you may have and write small wrapper procedures.

HTH, SF

>----- ------- Original Message ------- -----
>From: A Joshi <ajoshi977_at_yahoo.com>
>To: Multiple recipients of list ORACLE-L
><ORACLE-L_at_fatcity.com>
>Sent: Sun, 25 Jan 2004 22:19:27
>
>Hi,
> I am calling a Oracle stored procedure which has
>a ref cursor as a out param. I get the values. Is
>there a way for me to know the field names and type
>of the fields being passed in the ref cursor.
>Basically when the procedure sends back the ref
>cursor what information do I get apart from the
>data. Do I get any metadata (field names types
>etc). This is basically to write a calling program
>which I do not have to change when the ref curor
>/record changes in the stored procedure.
>Thanks in advance.
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriolecorp.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Mon Jan 26 2004 - 04:59:26 CST

Original text of this message

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