9. boolean execute
(
String Sql
)
ResultSet executeQuery
(
String Sql
)
int executeUpdate
(
String Sql
)
1.
It allows us to execute the Statement when we do not
know if it is a query or an update.
2.
It may return multiple results.
3. Use getResultSet to retrieve the ResultSet.
Executes the SQL string and returns a single
ResultSet object.
Executes a SQL string, which must be an
INSERT,UPDATE, DELETE, or a statement that
doesn’t return anything.