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

What are the basic exceptions in jdbc?

0 Answers  


What is jdbc odbc bridge in java?

0 Answers  


Which jdbc drivers will run your program?

0 Answers  


What is the use of jdbc api?

0 Answers  


Why “no suitable driver” error occurs?

0 Answers  






How do we call a stored procedure from jdbc?

0 Answers  


Is JDBC a language or Application?

3 Answers  


I have getting problem to calling stored procedure from Mysql through JSP. Please help me.

1 Answers  


How can you create jdbc statements?

0 Answers  


What does executeupdate return in java?

0 Answers  


What is the exception thrown by JDBC ?

7 Answers  


Explain the steps in writing a java program using jdbc?

0 Answers  


Categories