Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the purpose of the jdbc resultset interface?

962


What is DML?

1064


What is JDBC Connection isolation levels?

1129


What is the function of drivermanager class?

1154


Does sql allow null values ? Can we use it within where clause ?

1034


How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

1105


Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

967


What causes no suitable driver error?

1015


Is jdbc a web technology?

948


I have the choice of manipulating database data using a byte[] or a java.sql.blob. Which has best performance?

968


What are four types of JDBC driver?

1198


What is jdbc odbc in java?

1175


What is jdbc and why is it required?

976


Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

1145


What is jdbc type?

940