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 do you mean by batch processing in jdbc?
Differentiate between type_scroll_insensitive and type_scroll_sensitive.
What is the use of dialect?
How many packages are available in jdbc api?
How does a custom RowSetReader get called from a CachedRowSet?
What are the different types of lockings in jdbc?
How can you use preparedstatement in jdbc?
How to know howmuch data is truncated?
What is an odbc driver?
Why do you use a data source object for a connection?
How to connect multiple database in jdbc?
What are the factors that the jdbc driver performance depends upon?
How to insert and delete a row programmatically? (new feature in JDBC 2.0)
What is a jdbc url?
How can we store and retrieve images from the database?