Answers

Question and Answer:

  Home  Sr.Java Web Developer

⟩ What is execute(String query)?

Statement execute(String query) is used to execute any SQL query and it returns TRUE if the result is an ResultSet such as running Select queries. The output is FALSE when there is no ResultSet object such as running Insert or Update queries. We can use getResultSet() to get the ResultSet and getUpdateCount() method to retrieve the update count.

 150 views

More Questions for you: