• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Statement Object

 
seetarama raju
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me, if there is anything wrong in doing
like below
try { conn ---
st1 = conn.preparedstatement();
st1.executeupdate();
st2 = conn.preparedstatement();
st2.executeupdate(); }
catch() { }
finally { st1.close(); st2.close(); conn.close(); }
I mean to have two updates on same connection, and closing them in the end
Thanks
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have multiple statement objects per connection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic