File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes prepared stament for no of users Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "prepared stament for no of users" Watch "prepared stament for no of users" New topic

prepared stament for no of users

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
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

Joined: Aug 05, 2005
Posts: 30
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?
I agree. Here's the link:
subject: prepared stament for no of users
jQuery in Action, 3rd edition