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 is the fastest type of JDBC driver?

1101


What is executeupdate in java?

930


What is a java driver?

1072


How many types of jdbc drivers are there?

1050


What are database warnings in jdbc and how can we handle database warnings in jdbc?

1045


What are different types of ResultSet?

1107


Write an sql to find all records having all numeric characters in a field ?

1023


What does executeupdate return in java?

1094


What is jdbc driver in java?

973


How to check jdbc driver version in sql server?

1020


What is metadata in jdbc?

1076


What is an encrypted internet connection?

982


What is jdbc and jdbc drivers?

1059


Is jdbc a middleware?

1001


What is the difference between executing, executequery, executeupdate in jdbc?

1055