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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Simple question on Oracle stored procedure/function---HELP!!

Re: Simple question on Oracle stored procedure/function---HELP!!

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Sat, 04 Dec 1999 08:48:24 -0500
Message-ID: <1r6i4s8bj19sodumkmo102q83qiaku4neb@4ax.com>


A copy of this was sent to "Dana Jian" <djian_at_trasa.com> (if that email address didn't require changing) On Fri, 3 Dec 1999 15:05:11 -0500, you wrote:

>Hello,
>
>I'm a new user of PL/SQL in Oracle8, I have two questions as following:
>
>1) Can function in Oracle server return more than one value? how?
>
>I was trying to use OUT type of parameters in a function on the Oracle
>server, but I got NULL(VB program as front-end) returned from that function.
>
>Anyone knows the reason?
>

that'll be a bug in the way you bound to the procedure/function. the way to return >1 value from a function/procedure is to use IN OUT or OUT parameter and bind to them.

>2) Can function in Oracle server return a recordset--multiple rows with
>multiple columns? How??
>

yes, it is called a ref cursor. see the HOWTO return result sets located at the URL in my signature below.

>I really appreciate the help!!!
>
>Dana Jian
>dan_jian_at_hotmail.com
>

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Sat Dec 04 1999 - 07:48:24 CST

Original text of this message

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