aspose file tools
The moose likes JDBC and Relational Databases 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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31634
    
189

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


[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: Pre compilation of Prepared Statement