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

How to check jdbc connection in linux?

737


What is a rollback in jdbc?

723


What does the jdbc databasemetadata interface?

745


How can I create a custom RowSetMetaData object from scratch?

766


What is a statement in java?

698


What are the measures to connect to the db using jdbc?

698


What is the use of the statement in jdbc?

710


How do I insert an image file (or other raw data) into a database?

749


What is a jdbc connection string?

668


Does jdbctemplate close connection?

695


What is the function of setautocommit?

893


What is the major difference between java.util.date and java.sql.date data type?

691


What is drivermanager in java?

715


What is a merge field?

713


How do I find ojdbc jar version?

715