boolean execute(String sql) Executes the given SQL statement, which may return multiple results. int executeUpdate(String sql) Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.
Executes the given SQL statement, which may return multiple results.
int executeUpdate(String sql)
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.
那么在执行存储过程的时候应该是用execute而不是executeUpdate?
如果用executeUpdate有什么后果吗?