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 are the new features added to JDBC 4.0?

904


Jdbc-odbc bridge is multi-threaded or not?

910


Name the method, which is used to prepare a callablestatement.

858


Differentiate between a statement and a preparedstatement.

929


What is meant by connection string?

919


Can resultset be null in java?

870


What is hbm xml?

824


Explain about Join?

960


How does a custom RowSetReader get called from a CachedRowSet?

1023


What causes the "No suitable driver" error?

965


What are devices?

899


What is a connection string used for?

911


What is the use of the statement in jdbc?

868


Why “no suitable driver” error occurs?

1010


What is JDBC Connection? Explain steps to get Database connection in a simple java program.

1081