jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Pre compilation of Prepared Statement" Watch "Pre compilation of Prepared Statement" New topic

Pre compilation of Prepared Statement

Anoop Kavalloor

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

Joined: May 26, 2003
Posts: 32803

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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Pre compilation of Prepared Statement
It's not a secret anymore!