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: How do I know if UPDATE fails?

Re: How do I know if UPDATE fails?

From: Ubiquitous <weberm_at_polaris.net>
Date: Wed, 26 Feb 2003 13:47:31 +0000 (UTC)
Message-ID: <b3ighj$gu4$1@news.utelfla.com>


nobody <nobody_at_nowhere.com> wrote:

: create or replace procedure ab is
: begin
: update junk
: set points=4
: where points=5;
: if sql%rowcount=0 then
: dbms_output.put_line('not updated');
: end if;
: end;

Thank you! I had completely forgotten about those implicit cursor attributes. :-)

I think an alternative would be to use %found or %notfound as well. Received on Wed Feb 26 2003 - 07:47:31 CST

Original text of this message

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