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: help! ...compilation error running a simple procedure

Re: help! ...compilation error running a simple procedure

From: G.H VITTAL <vittal_at_india.hp.com>
Date: Thu, 15 Apr 1999 19:22:34 +0530
Message-ID: <3715EF22.D1A0160D@india.hp.com>


I think you have written wrongly this stmt exit when getdata%notfound it should be exit when c1%notfound

regards
vittal

dnanda wrote:

> i'm in a fix ....i am trying to run a procedure which is not running on
> sql*plus 8.0
> create or replace procedure get_data(cl_no IN client_master.client_no%type)
> is
> cname client_master.name%type;
> cursor c1(cno) is select name from client_master where client_no=cno;
> begin
> open c1(cl_no);
> loop
> fetch c1 into cname;
> exit when getdata%notfound;
> end loop;
> close c1;
> end;
>
> this procedure is showing compilation errors and sometimes saying that the
> object already exists..i have also tried changing names.
Received on Thu Apr 15 1999 - 08:52:34 CDT

Original text of this message

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