batchUpdate(String[] sql)
引數說明:public static void main(String[] args){ ApplicationContext context = new ClassPathXmlApplicationContext("cfg/XMLConfig.xml"); //載入組態檔 Dao dao = (Dao)context.getBean("dao"); //建立Dao JdbcTemplate jtm = dao.getJdbcTemplate(); String[] sqls = { "delete from tb_user where age<27", "delete from tb_user where age>35" }; int[] batchUpdate = jtm.batchUpdate(args); }