• Post Reply Bookmark Topic Watch Topic
  • New Topic

executeBatch() amount of success rows  RSS feed

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Is it possible to know how many rows was effected by executeBatch of PreparedStatement after a successful update??

Thank you
Sharon
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The return value of the executeBatch method contains just that information.
 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am filling table with the following code,
every 50 records added, i am running execute batch.

just tested it with 7 records,
execute batch returned int array of 1 only, containing value -2

Sharon

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!