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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: updated rows count

Re: updated rows count

From: Tim Gorman <Tim_at_SageLogix.com>
Date: Thu, 30 May 2002 10:58:40 -0800
Message-ID: <F001.0047014F.20020530105840@fatcity.com>


if you're going to do all that, why not simply CREATE SNAPSHOT LOG ... WITH ROWID against the table in question, and have the RDBMS do all that coding for you?

Create "After update" trigger on table assethdr. And let the trigger insert ROWID of changed rows in other table.

And you can always do SELECT DISTINCT ROW_ID FROM my_spy_table_with_rowids :-]

JP

> ----- Original Message -----
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Sent: Thursday, May 30, 2002 3:48 PM
>
>
> Hi All!
> My client run big update 20,000 statements. I need to know how many rows
> was updated (it's could be any number).
> I thinking about triggers , but this table can be updated not only with
> this big update. Other users can update rows too.
> I need to know updated rows number just for this big update.
> Thanks.
>
> update assethdr set atopsys= 'MS Windows 95 4.00',atdept='256MB',
> atcapcty=850, atcapun=10000, atglcode='19.99GB', atus1='05/20/2002' where
> ataltnbr='0000000';
> update assethdr set atopsys= 'MS Windows 95 4.00',atdept='256MB',
atcapcty=
> 850, atcapun=10000, atglcode='19.99GB', atus1='05/17/2002' where
> ataltnbr='00000000';
> update assethdr set atopsys= 'MS Windows 2000 Pro 5.00',atdept='128MB',
> atcapcty= 400, atcapun=10000, atglcode='6.43GB', atus1='05/20/2002' where
> ataltnbr='00000296';
> ............................

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jan Pruner
  INET: jan_at_pruner.cz

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Tim Gorman
  INET: Tim_at_SageLogix.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu May 30 2002 - 13:58:40 CDT

Original text of this message

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