Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: "Connect by" can't be put in Function?
You are right. The error is caused by my un-solid concept in Stored Procedure. The problem is solved now.
Matthew Fuller wrote:
> In article <3A683AA1.4541E038_at_hknet.com>,
> Diviner <diviner_at_hknet.com> wrote:
> > I created a table and used this for querying very well:
> > select filename from docindex
> > start with refno = 42
> > connect by prior parentnode = refno;
> >
> > But I failed to create this Function object:
> > create or replace function GetFullPath(pDocIndexRefNo
> > DocIndex.RefNo%type)
> > return varchar
> > as
> > begin
> > select filename from docindex
> > start with refno = 42
> > connect by prior parentnode = refno;
> >
> > return 'Hello';
> > end;
> >
> > Just a simple function, where are my wrong?
> >
> > --
> > Best regards,
> > Diviner.
> >
> >
>
>
>
>
>
>
>
>
![]() |
![]() |