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 / narasimha rao bodagala

Hey this is an interface.

in the jdbc API they designed all the interface. which you
can use any interface based on that you can create the
implemented class method.

for this you can call in the core java design
pattern..abstract factory pattren..

you can try to see the API you can understand more.

preparedstatement---pre compiled statement.

first time it's compile and second time it will pass
dynamically.

make sure that should be done in DB side only once.

one time compile and next time passing the values into the
query then execute.

overall story behind this one time compile many times execute.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss the significances of jdbc.

706


How can we store and retrieve images from the database?

721


What is jdbc odbc driver?

763


Why do I have to reaccess the database for Array, Blob, and Clob data?

759


In which ways is driver class is registered with drive manager?

722


What are the main steps in java to make JDBC connectivity?

788


Differentiate between stored procedure and functions?

819


When does the result for an sql statement return null?

694


How can you make the connection using jdbc?

779


What is represented by the connection object?

769


How many jdbc driver types are there?

675


What is the meaning of batch updates?

796


What is dburl?

775


How to know howmuch data is truncated?

2102


What is execute in java?

693