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
What is the fastest type of JDBC driver?
What is executeupdate in java?
What is a java driver?
How many types of jdbc drivers are there?
What are database warnings in jdbc and how can we handle database warnings in jdbc?
What are different types of ResultSet?
Write an sql to find all records having all numeric characters in a field ?
What does executeupdate return in java?
What is jdbc driver in java?
How to check jdbc driver version in sql server?
What is metadata in jdbc?
What is an encrypted internet connection?
What is jdbc and jdbc drivers?
Is jdbc a middleware?
What is the difference between executing, executequery, executeupdate in jdbc?