wood burning stoves*
The moose likes JDBC and the fly likes jdbc prepared statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc prepared statement" Watch "jdbc prepared statement" New topic
Author

jdbc prepared statement

anbarasan nadar
Greenhorn

Joined: Nov 24, 2004
Posts: 1
when we are passing input parameteres prepared statement get compiled again
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Is this a problem or a question? Prepared Statements should be compiled once only.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30146
    
150

Anbarasan,
Just to expand on this: a prepared statement is compiled once. Each time it is called, the different input parameters are bound to the question marks.

And welcome to JavaRanch!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jdbc prepared statement
 
Similar Threads
pre-compile and prepared statement
Create DB2 database
Escaping special characters
what is better
Urgent Java interview question 6+ yrs exp.