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: Finding out how many rows were updated?

Re: Finding out how many rows were updated?

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Fri, 19 Dec 2003 20:59:15 +0100
Message-ID: <r3m6uvgq33ovk6nspkjik23eb0clqmr0m7@4ax.com>


On 19 Dec 2003 11:51:17 -0800, seaelephant_at_hotmail.com (dx) wrote:

>You can't use sql%rowcount in "returning into" clause.
>
>try this:
>
>UPDATE COMPANIES
>SET CONTACT = p_contact
>WHERE COMPANY_ID = p_CompanyID;
>
>v_noupdated := sql%rowcount;

in Pro*C the sqlca will contain the number of rows processed

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri Dec 19 2003 - 13:59:15 CST

Original text of this message

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