Answer Posted / mathivanan
Statement:
Where we r going to a loop the SQL query has to be
compiled every iteration.
PreparedStatement:
Unlike Statement the SQL query is compiled one time and
use that pre_compiled query in all iteration. So it reduces
the execution time
While declaring the PreparedStatement itself v can give
the query which has to performed.
Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
Where is jdbc used?
How to check jdbc driver version in sql server?
Define preparedstatement.
What is batch processing and how to perform batch processing in jdbc?
Is jdbc secure?
How do I find whether a parameter exists in the request object?
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?
Is odbc an api?
What is jdbc thin client?
What is 2 phase commit?
What is metadata in programming?
What is jdbc driver for sql server?
Explain the JDBC Architecture?
Why we use jdbc instead of odbc?
What does executeupdate return in java?