To execute a batch of commands, we use the ________ method.

  • execute()
  • executeBatch()
  • executeQuery()
  • executeUpdate()
In JDBC, the executeBatch() method is used to execute a batch of SQL commands in a single call to the database. This can be more efficient than executing each command individually, especially when you need to perform multiple operations in a single batch, such as inserts, updates, or deletes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *