Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can i use only one connection and only one statement to execute multiple queries

 
yashpal waghmare
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i use only one connection and only one statement to execute multiple queries and How?
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yashpal,

Did you try/test this out your own? If YES, did you encounter any problem?
 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can reuse single connection as long as it is not closed .And you can run multiple queries using batch update.

Thanks
Raj
 
yashpal waghmare
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chandra Bhatt:
Hi Yashpal,

Did you try/test this out your own? If YES, did you encounter any problem?


Yes i tried , its giving problem while using same.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yashpal,

Will you share the problem that you faced with us please?
Paste stack trace of the exception you get, or you can elaborate
your problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic