aspose file tools*
The moose likes JDBC 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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: 1121

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"
It is sorta covered in the JavaRanch Style Guide.
subject: where can we use prepared statement
Similar Threads
Prepared Statements
pre-compile and prepared statement
What is the Advantage Of Prepared Statement Over Statement
Difference between Statement/Prepared statement?
use a Statement rather than PreparedStatement