jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases 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 and Relational Databases
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

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!


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
Have you checked out Aspose?
 
subject: jdbc prepared statement
 
It's not a secret anymore!