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 -> PL/SQL Stored Functions Question

PL/SQL Stored Functions Question

From: Ilya Gaysinskiy <isg8_at_columbia.edu>
Date: Mon, 1 Nov 1999 08:35:59 -0500
Message-ID: <Pine.GSO.4.10.9911010831410.16513-100000@sawasdee.cc.columbia.edu>


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! Received on Mon Nov 01 1999 - 07:35:59 CST

Original text of this message

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