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...

PreparedStatement is a pre compiled statement but where it's
pre compiled ?

Answer Posted / aravind

Hi,
in prepared statement when u mention the query that time
only statement will be internaly sent to DB and checks for
the query syntax, so when u execute it directly executes
the statement.

PreparedStatement pstmt = conn.prepareStatement("insert
into table (column2) values ("My Value") where id = 1000");

//pstmt is already compiled

pstmt.execute();

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by batch processing in jdbc?

1002


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

907


What is the use of dialect?

997


How many packages are available in jdbc api?

947


How does a custom RowSetReader get called from a CachedRowSet?

1065


What are the different types of lockings in jdbc?

907


How can you use preparedstatement in jdbc?

970


How to know howmuch data is truncated?

2356


What is an odbc driver?

898


Why do you use a data source object for a connection?

1015


How to connect multiple database in jdbc?

1058


What are the factors that the jdbc driver performance depends upon?

956


How to insert and delete a row programmatically? (new feature in JDBC 2.0)

979


What is a jdbc url?

880


How can we store and retrieve images from the database?

946