WHAT IS THE ADVANTAGE OF USING PREPAREDSTATEMENT?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
Java 
 985  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    What is the advantage of using PreparedStatement?

    If we are using PreparedStatement the execution time will be less. The PreparedStatement object contains not just an SQL statement, but the SQL statement that has been precompiled. This means that when the PreparedStatement is executed,the RDBMS can just run the PreparedStatement’s Sql statement without having to compile it first.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!