Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Is is possible to return a set (list) from a function???
Hi!
i wonder if there's a way to return a list from a PL/SQL function... i'd like to do the following:
SELECT * FROM xyz
WHERE key_id IN mySetReturnFunction(x);
instead of
SELECT * FROM xyz
WHERE key_id IN (SELECT key_id FROM abc WHERE foo > 7)
mySetReturnFunction(x) should return n (n >= 0) rows of xyz.key_id%TYPE
as far as i know this is not possible (at least not in oracle7.3) - but maybe there's another way solve this problem??!
thanks for any help,
Hannes
Received on Tue Sep 15 1998 - 09:52:49 CDT
![]() |
![]() |