Forums Register Login

Counting .executeBatch();

+Pie Number of slices to send: Send
How can I count the inserted records


[ April 11, 2008: Message edited by: Fred Rosenberger ]
+Pie Number of slices to send: Send
. . . by adding count++; as a line in your for-loop?
+Pie Number of slices to send: Send
 

Originally posted by Campbell Ritchie:
. . . by adding count++; as a line in your for-loop?



Thanks a lot
+Pie Number of slices to send: Send
Or look at the return value of executeBatch. That's an int[]:

an array of update counts containing one element for each command in the batch. The elements of the array are ordered according to the order in which commands were added to the batch.


Just add those values and you should get the answer as well.
It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1716 times.
Similar Threads
Running scheduler through thread
another problem with float's and double's
method call
c++ to Java
Reverse Sentence
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:08:39.