Two Laptop Bag*
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


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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30597
    
154

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