Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Question newbie on PL/SQL: Create function with cursor

Re: Question newbie on PL/SQL: Create function with cursor

From: MarkyG <markg_at_mymail.tm>
Date: 28 Feb 2002 03:26:01 -0800
Message-ID: <ab87195e.0202280326.26c948b@posting.google.com>


It looks fine by me.

Try running it again and posting your error message. Maybe you havent got rights to the underlying table in the cursor?

M

zhang_ruotao_at_iname.com (zhang ruotao) wrote in message news:<b372a0d0.0202270558.78f304c8_at_posting.google.com>...
> hi,
>
> i have difficulties to create my "simple" PL/SQL here, in SQL WorkSheet:
>
> create or replace function MyFunc
> return NUMBER
> IS
> cursor cl IS SELECT enti_id from ta_entite;
> BEGIN
> return (5);
> END;
>
> if i get rid of the declaration of CURSOR, that works.
> So i think there's a pb in my declaration of Coursor?
>
> Thanks
>
> ruotao zhang
Received on Thu Feb 28 2002 - 05:26:01 CST

Original text of this message

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