Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What problem with this batch update ?

 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i doing batch update, i facing the problem of insertion, which only save for first table, below is the sample code



again, can i do batch update like this ? anyone mind to guide me what wrong here ? thank in advance for guidance
[ November 14, 2005: Message edited by: Nakata kokuyo ]
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35976
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nakata,
Does the second one work if you remove the unneccessary:
ps = dbCon.prepareStatement(headerSql);
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, the statement should not be there , anyway, the code actually work , just my db tools limit the result to display out , sorry and thanks Jeanne Boyarsky , very kind of you ....have a nice day
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!