HOWTO: STORED PROCEDURE RETURNING MANY ROWS

From: Andreas Mosmann <mosmann_at_expires-30-06-2011.news-group.org>
Date: Thu, 16 Jun 2011 09:53:16 +0200
Message-ID: <1308210796.89_at_user.newsoffice.de>



Hi,

I look for a way to write a stored procedure, that returns more than 1 "row"s.

I want to do something like

select MyProc('A','B','C') from dual;

and get

ID TEXT
1 1stRow
2 2ndRow
3 3rdRow
.
999 999thRow

and so on.

If Possible it would be nice to do something like

select * from MyProc('A','B','C')

or

select * from MyProc('A','B','C') X
join MyTable Y on X.ID=Y.ID

Is there a way? (Oracle 9/11)

-- 
wenn email, dann AndreasMosmann <bei> web <punkt> de
Received on Thu Jun 16 2011 - 02:53:16 CDT

Original text of this message