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

Re: No of rows affected in a SQL statement?

From: Kit <pashwawa_at_hotmail.com>
Date: Fri, 18 Aug 2000 12:55:22 +0800
Message-ID: <8nifk5$8bg90@imsp212.netvigator.com>

Thanks for all the replies. the sql%rowcount would do exactly what I wanted to do.

"Kit" <pashwawa_at_hotmail.com> wrote in message news:8ngs1s$j2v4_at_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 - 23:55:22 CDT

Original text of this message

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