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

Home -> Community -> Usenet -> c.d.o.server -> Re: PL/SQL Stored Functions Question

Re: PL/SQL Stored Functions Question

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Mon, 01 Nov 1999 09:00:10 -0500
Message-ID: <2ZwdOJWPzydZwzew93hobCWc2EzX@4ax.com>


A copy of this was sent to Ilya Gaysinskiy <isg8_at_columbia.edu> (if that email address didn't require changing) On Mon, 1 Nov 1999 08:35:59 -0500, you wrote:

>Hi, all.
>
>I am new to Oracle and having installed it on my Linux server I am pretty
>happy with it so far. However, I still can't figure out how to make a
>stored function that would return a SQL query result (I guess that would
>be a cursor). Can anyone post a small example of such a function? For
>example, I want a function which recieves one parameter:
>soc_sec_num and returns the following query result:
>
>select lname, fname from employee where ssn=soc_sec_num
>
> Thanks!

see the URL in my signature for a HOWTO on returning result sets from stored procedures.

--
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 Mon Nov 01 1999 - 08:00:10 CST

Original text of this message

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