A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
reuse java.sql.Statement
Abhijeet Gholkar
Greenhorn
Joined: Jun 11, 2002
Posts: 25
posted
Sep 01, 2003 05:59:00
0
Hi folks
Can i use same
java.sql.Statement
object for executing more than one queries at a time. If not please tell me why.
narasimharao konjeti
Ranch Hand
Joined: Apr 26, 2003
Posts: 130
posted
Sep 01, 2003 06:22:00
0
s we can excucute, there is no problem.
"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Dana Hanna
Ranch Hand
Joined: Feb 28, 2003
Posts: 227
posted
Sep 02, 2003 21:05:00
0
If by "at the same time" you mean concurrently from different Threads, I'm going to have to say NO WAY.
I agree. Here's the link:
http://aspose.com/file-tools
subject: reuse java.sql.Statement
Similar Threads
Threads and Waiting for DB connection
getFetchSize()
Creating Database
Special Character Handling
Q: repeatedly execute() on PreparedStatement without close()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter