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 -> No of rows affected in a SQL statement?

No of rows affected in a SQL statement?

From: Kit <pashwawa_at_hotmail.com>
Date: Thu, 17 Aug 2000 22:14:23 +0800
Message-ID: <8ngs1s$j2v4@imsp212.netvigator.com>

I have been trying to get the number of rows affected from a SQL statment without issuing another
statment to do a count(*), any help will be appreciated.

For example, if I do the following SQL, is it possible to get the count(*) after the SQL is run?

insert into table_a
select col_a, col_b from table_b
where col_a > 1000;

count(*)?

I have not found any reference in Oracle documentation that can be done but I see the front end
programs (TOAD for one) can display the number of rows affectred, so I bet there must be way to do
that. Received on Thu Aug 17 2000 - 09:14:23 CDT

Original text of this message

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