Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

prepared stament for no of users  RSS feed

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If multiple users are given the same Prepared Statement, with
different Connections ( each user has one connection), then how the JDBC
driver handles the Prepared Statement.
 
Lars Vonk
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How is this possible? You call prepareStatement() on your Connection object, this returns a PreparedStatement. So if each user has a different Connection then how can they have the same PreparedStatement?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!