This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Pre compilation of Prepared Statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Pre compilation of Prepared Statement" Watch "Pre compilation of Prepared Statement" New topic
Author

Pre compilation of Prepared Statement

Anoop Kavalloor
Greenhorn

Joined: Sep 06, 2004
Posts: 15
Exactly at what moment does the Database driver/engine compile the Prepared Statement (since it is known as pre compiled stmt).


I am not completely useless.<br />I can be used as a bad example.<br /> <br />SCJP 1.4
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Anoop,
When you call prepareStatement(), you are informing the driver to precompile the statement. The database itself precompiles on the first call.


[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: Pre compilation of Prepared Statement
 
Similar Threads
How to move cursor to next row?
Create DB2 database
what is better
PreparedStatement Vs Statement
Difference between Statement/Prepared statement?