Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: parameterized views
Galen,
> What would that be and how would you use it?
I think you are right: it would be nothing. I think the answer for my problem is the "table function".
Galen, please tell me if following "template" could be good for creating a tabel function :
CREATE FUNCTION MyFunction (someParam...) RETURN MyRowType PIPELINED
IS
cursor myCursor is Select somefields FROM SomeTable WHERE
someCondition(someParam);
sourceRow myCursor%ROWTYPE;
outRow MyRowType ;
BEGIN
for sourceRow in myCursor
loop
outRow := MyRowType(sourceRow.Field1,sourceRow.Field2,...); PIPE ROW (outRow);
Is there some other simplier way to do the same thing ?
Thank you,
ernest
"Galen Boyer" <galenboyer_at_hotpop.com> wrote in message
news:uwu07f2qi.fsf_at_standardandpoors.com...
> On Tue, 10 Aug 2004, ernest_at_gesora.com wrote:
> > Hi !
> >
> > Is it possible in Oracle to create a parameterized view ?
>
> What would that be and how would you use it?
>
> --
> Galen Boyer
Received on Tue Aug 10 2004 - 10:59:39 CDT