日期:2014-05-16 浏览次数:20511 次
batchUpdate public int[] batchUpdate(String[] sql) throws DataAccessException Description copied from interface: JdbcOperations Issue multiple SQL updates on a single JDBC Statement using batching. Will fall back to separate updates on a single Statement if the JDBC driver does not support batch updates. Specified by: batchUpdate in interface JdbcOperations Parameters: sql - defining an array of SQL statements that will be executed. Returns: [b]an array of the number of rows affected by each statement[/b] Throws: DataAccessException - if there is any problem executing the batch