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: How do I find out how many rows where effected by an update?

Re: How do I find out how many rows where effected by an update?

From: David Fitzjarrell <oratune_at_aol.com>
Date: Fri, 22 Dec 2000 19:52:01 GMT
Message-ID: <920bcv$ohi$1@nnrp1.deja.com>

In our last gripping episode "Kevin Hunt" <khhis_at_triplecrownsvc.com> wrote:
> How do I find out after an UPDATE command, how many rows where
 effected?
>
>

Through SQL*Plus the count of affected rows is displayed after the update is completed. With PL/SQL one can use %ROWCOUNT as long as the cursor has not been closed. One may also create a counter in PL/SQL and increment it for each row updated.

--
David Fitzjarrell
Oracle Certified DBA


Sent via Deja.com
http://www.deja.com/
Received on Fri Dec 22 2000 - 13:52:01 CST

Original text of this message

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