What is Statement and PreparedStatement? whatz the
difference?
Answer Posted / kalyan
As harish, said prepared statement is pre-complied so it
will be very fast when compared to normal statement.when we
execute same query again and again for different set of
input data.
code snippet for this is :--
for normal statement :
Statement st = conn.createStatement();
for prepared statement :
PreparedStatement prSt = conn.prepareStatement
("query") ;
// set values for input paramenters and execute as usual.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Does jdbc use ssl?
Give an example for getXXX method?
Is jdbc connection secure?
What is jdbc odbc driver?
What is in term of jdbc a datasource?
What are the different types of interfaces in the api component?
What is jsp and jdbc?
What is new in JDBC 2.0?
How can you make the connection using jdbc?
What is difference between java.util.Date and java.sql.Date?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
What is the difference between jdbc and jndi?
What are the types of statements in jdbc?
What are the differences between execute, executequery, and executeupdate?
What is jdbc url for mysql?