wood burning stoves*
The moose likes JDBC 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
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 http://www.jguru.com/faq/view.jsp?EID=693
or type your question in google and go through the urls to get convincing answer.
jQuery in Action, 2nd edition
subject: PreparedStament and Statement
Similar Threads
PreparedStatement's executeQuery() returning resultset with no rows
benefit of Statement over PreparedStatement?
Filtering Data to prevent SQL Injection
Statement, PreparedStatement, CallableStatement
benefit of PreparedStatement if closed due to error: maximum open cursors exceeded