What is a PreparedStatement?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jdbc odbc bridge in java?

740


What do you mean by odbc?

757


How vendor Naming registry supports JNDI?

1925


What is a jdbc driver and how many jdbc drivers are available?

757


What are the advantages of using preparedstatement over statement?

741


What is a jdbc connection pool?

696


What is jdbc connection?

806


What is JDBC Transaction Management and why do we need it?

719


How do I start debugging problems related to the JDBC API?

710


Is jdbc a web technology?

653


Explain about multiple implementations and drive manager?

774


What does the jdbc resultset interface?

713


How are jdbc statements used?

680


What is the use of JDBC DriverManager class?

725


What are the three parts of a jdbc url?

733