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 a PreparedStatement?

Answer Posted / kalyan

If same query is executed multiple times over DB for
different values, we go for preparedStatement

PreparedStatement ps = con.prepareStatement(
"UPDATE TABLE_NAME SET COLUMN = ? WHERE COF_VALUE
LIKE ?");

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does jdbc work?

838


What is jdbc and jpa?

917


How to set NULL values in JDBC PreparedStatement?

930


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

890


What is jndi lookup?

888


Where is ojdbc14 jar located?

895


What causes no suitable driver error?

923


Which package is used for jdbc application?

922


How do we load the drivers?

931


Give an example of code used for setting up connection with a driver.

900


Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?

877


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

872


What is JDBC Savepoint? How to use it?

1132


What is jdbc url for mysql?

986


How does jdbc driver work?

928