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 many records do I commit after insert?

Re: How many records do I commit after insert?

From: a <a_at_x.y>
Date: Fri, 9 Oct 1998 18:17:47 +1000
Message-ID: <6vkhe4$fu1$1@reader1.reader.news.ozemail.net>


If this is within PL/SQL, I believe you can interrogate the cursor variables of the implicit cursor, "SQL".
Thus, you could say:

tot := 0;
insert into....
tot := tot + SQL%ROWCOUNT;
insert into....
tot := tot + SQL%ROWCOUNT;
insert into....
tot := tot + SQL%ROWCOUNT;
etc.

Violin wrote in message <361f1eb0.7936353_at_news.twsc.pouchen.com.tw>...
>Hello,
>Does any way to know how many records after insert and commit?
>Ex.
> insert into table1 (col1,col2,col3) (select * from table2);
> insert into table1 (col1,col2,col3) (select * from table3);
> insert into table1 (col1,col2,col3) (select * from table4);
> commit;
>
>I want to know how many records I will commit.
>Please give me some tips.
>Thank you in advance.
>
>Violin.
>violin.hsiao_at_mail.pouchen.com.tw
Received on Fri Oct 09 1998 - 03:17:47 CDT

Original text of this message

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