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: Stored procedure returning records

Re: Stored procedure returning records

From: Rene Nyffenegger <rene.nyffenegger_at_gmx.ch>
Date: 10 Sep 2003 19:46:49 GMT
Message-ID: <bjnv39$kqpk1$1@ID-82536.news.uni-berlin.de>

> Hi all,
>
> I would like to write a stored procedure that returns records and use
> that like I would use a table or view. For example:
>
> select emp_no, dept_no
> from emps_hired_in(2003)
>
> where emps_hired_in is a stored procedure. We have changed recently
> from Ora 7 to 9i, and I am almost sure this was not possible in Ora 7.
> Is it possible with 9i? If so, how?

Thorsten,

I have compiled a sample on my homepage which discusses how to 'return a table' from a pl/sql function. You find this here:

    http://www.adp-gmbh.ch/ora/plsql/coll/return_table.html

I hope you find it useful.

Rene

-- 
  Rene Nyffenegger
  http://www.adp-gmbh.ch
Received on Wed Sep 10 2003 - 14:46:49 CDT

Original text of this message

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