Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

insertRow or SQl query

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it better to use rs.insertRow through a resultset or by an statement of SQl query through a connection object.
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its better to use prepared statement to insert the record in database. Its more efficient. I think most of the drivers not support insertRow.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic