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

Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL with select into returning no rows

Re: PL/SQL with select into returning no rows

From: Lun Wing San (Oracle) <wslun_at_qrcsun.qrc.org>
Date: 1997/03/16
Message-ID: <332C73C2.7A0C@qrcsun.qrc.org>#1/1

Jim Finch wrote:
>
> I have a oracle procedure that has two cursors one embedded in the
> other. In the cursors I have a select into statement. When I run this
> procedure I get an "no rows returned" error on the select. I want to
> have the procedure to keep executing in this condition but can't seem to
> get it to work. The server is 7.2.3. The procedure will be run on the
> server.

  You can use an exception handler to handle the no_data_found exception. The exception can be defined within a block. As a result it can be defined within your loop.

---
Name   : Lun Wing San (Certified Oracle Database Administrator)

Title  : Oracle Database Administrator and System Administrator of QRC
Phone  : (852)27885841

This posting represents the personal opinions of the author. It is not the
official opinion or policy of the author's employer. Warranty expired when you
opened this article and I will not be responsible for its contents or use.
Received on Sun Mar 16 1997 - 00:00:00 CST

Original text of this message

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