What is a PreparedStatement?

Answers were Sorted based on User's Feedback



What is a PreparedStatement?..

Answer / umamaheswari

PreparedStatement used to send SQL Statement to the Database
It not only contains the SQL Statement ,but also the
precompiled SQL Statement.It means that when the
PreparedStatement is executed ,the DBMS just run the SQL
Statement without compiling it

Is This Answer Correct ?    6 Yes 0 No

What is a PreparedStatement?..

Answer / ganesan

If you want to execute a Statement object many times, it
normally reduces execution time to use a PreparedStatement
object instead.

Is This Answer Correct ?    5 Yes 1 No

What is a PreparedStatement?..

Answer / kalyan

If same query is executed multiple times over DB for
different values, we go for preparedStatement

PreparedStatement ps = con.prepareStatement(
"UPDATE TABLE_NAME SET COLUMN = ? WHERE COF_VALUE
LIKE ?");

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More JDBC Interview Questions

How do I find whether a parameter exists in the request object?

0 Answers  


Does jpa use jdbc?

0 Answers  


what is meant by connection pooling?

4 Answers  


What is metadata in programming?

0 Answers  


how to use CallableStatement? specially how to use their index given ..

1 Answers  






What are the advantages of collection pools?

0 Answers  


I have written a program to connect to database using odbc.Can this Application run on any Platform????

2 Answers  


How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?

0 Answers  


List the advantages of using datasource?

0 Answers  


What is an advantage of using the jdbc connection pool?

0 Answers  


What is jdbc connection interface?

0 Answers  


What is PreparedStatement?

6 Answers   Infogain, Wipro,


Categories