日期:2014-05-16  浏览次数:20491 次

JdbcTemplate的各种修改方法
this.jdbcTemplate.update(  "insert into t_actor (first_name, last_name) values (?, ?)",  "Leonor", "Watling");
this.jdbcTemplate.update(  "update t_actor set = ? where id = ?",  "Banjo", 5276L);
this.jdbcTemplate.update(  "delete from actor where id = ?",  Long.valueOf(actorId));
this.jdbcTemplate.execute("create table mytable (id integer, name varchar(100))");
this.jdbcTemplate.update(  "call SUPPORT.REFRESH_ACTORS_SUMMARY(?)",  Long.valueOf(unionId));