Answer Posted / suresh
PreparedStatements are precompiled. When you create a
PreparedStatement you supply a SQL statement. This statement
is passed right along to your database where it is compiled
and cached. The advantage of this is that if you are running
a query multiple times the database will not have to compile
it each time before it is run. This can result in a hefty
performance boost.
Read more: How to use a Java Prepared Statement | eHow.com
http://www.ehow.com/how_5386522_use-java-prepared-statement.html#ixzz12INtbKn4
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?
Is jdbctemplate thread safe?
What is a jdbctemplate?
What is the meaning of batch updates?
What does the jdbc resultset interface?
How many ways can you update a result set?
Does JDBC support stored procedures?
How to insert an image or raw data into database?
What are four types of JDBC driver?
Explain the steps in writing a java program using jdbc?
What is a rollback in jdbc?
What is database deadlock ?
How will you perform truncation using JDBC?
Where is jdbc used?
What are the benefits of PreparedStatement over Statement?