File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes where can we use prepared statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "where can we use prepared statement" Watch "where can we use prepared statement" New topic

where can we use prepared statement

prakash narkodu

Joined: May 23, 2003
Posts: 5
I haerd that Prepared Statements are precomiled ones , so they are not compiled everytime whereas with createStaement same is not the case. But once jsp program compiled then next time it will not compile so how does only prepared Statement is precompiled one ?

Please give suggestion where to use prepared statement and where to use statement
Thanking you
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

Hi Prakash,
In case you haven't already read it, perhaps this article may be helpful:
Good Luck,
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

I also like this article from TheServerSide: Why Prepared Statements are important and how to use them "properly"
I agree. Here's the link:
subject: where can we use prepared statement
It's not a secret anymore!