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 PreparedStament and 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 "PreparedStament and Statement" Watch "PreparedStament and Statement" New topic

PreparedStament and Statement

Sakthi Kani
Ranch Hand

Joined: Mar 29, 2005
Posts: 98

Please tell me the difference between PreparedStatement and Statement.

I know PreparedStatement represents the precompiled SQL statement, But i donno when it will be compiled..

Please help me to clear.

Since I am new to JDBC, tell me the good book or website to get the clear concepts of jdbc.

Thanks in Advance..

" Don't be afraid of pressure. Remember that pressure is what turns a lump of coal into a diamond... " <br /> <br />Thanks & Regards...<br />Sakthi<br />SCJP1.4, OCA
sweta naidu

Joined: Nov 02, 2004
Posts: 25
refer this link
or type your question in google and go through the urls to get convincing answer.
I agree. Here's the link:
subject: PreparedStament and Statement