Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executeBatch() amount of success rows

 
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: 42969
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