Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to batch insert and update?  RSS feed

 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, good day, i have a result List which contains 2 records of data, say :

[name, age, address] for each row of columns record, below is my sample code, but is it correct way? and did i missing any part, really need your guide




is it correct way to do batch insert and update or any better way to do so ? Microsoft SQL support batch insert right ? thank you
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37242
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nakata,
Yes, that is the correct way to do it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!