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 is the major difference between java.util.date and java.sql.date data type?

671


Why should we close database connections in java?

909


What are different parts of a url?

699


What is the most common example type 1 driver?

788


Explain the locking system in jdbc & its types?

699


What are the different classes through which JDBC represents statements?

691


What do you mean by two phase commits?

759


What is resultset?

752


What does the jdbc resultsetmetadata interface?

729


What do you understand by jdbc statements?

725


Explain the locking system in jdbc?

725


How can we execute stored procedures using callablestatement?

692


How many types of statements are there in jdbc?

671


Why we use jdbc instead of odbc?

721


What does the jdbc databasemetadata interface?

723