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
What is jdbc class forname?
What is jdbc and odbc?
Why prepared statements are faster?
Why is odbc needed?
State the different connection methods used for creating different types of sql.
What are the advantages of using jdbc datasource?
When do we get java.sql.SQLException: No suitable driver found?
How many types of JDBC Drivers are present and what are they?
How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?
What is database deadlock ?
What types of DataSource objects are specified in the Optional Package?
What is two-phase commit in the database?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
What are the jdbc statements?
What is difference between odbc and jdbc?