This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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


Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 31577
    
185

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc prepared statement