This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 32633

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:
subject: Pre compilation of Prepared Statement
It's not a secret anymore!