What is the use of prepared statement?Ans:used to execute
pre compiled statement...so the question is when that
precompiled statement will be execute or
comiple?................

Answer Posted / anjani kumar jha

prepared statement work same as the statement,but there r
some differences.

wen u submitting the query first time following things happened
1)compiling the query
2)executing the query
3)sending results back to the program

2nd time onwards
1)executing the query directly
2) sending results back to the program

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the jdbc connection interface?

529


What is the difference between jdbc and jndi?

480


What is a lock in jdbc?

534


What is difference between java.util.Date and java.sql.Date?

524


Explain the two tier and three tier architecture of jdbc.

515






What is the function of drivermanager class?

539


What is a java driver?

490


What is encrypted connection?

492


What is resultset?

563


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

572


How many types of statements are there in jdbc?

482


Is jdbc a framework?

471


What is jdbc class forname?

479


What is difference between statement and preparedstatement in jdbc?

459


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

650