JdbcTemplate 文件(转)

JdbcTemplate 资料(转)使用JdbcTemplate的execute()方法执行SQL语句 :3、带参数的更新template.query(sele

JdbcTemplate 资料(转)
使用JdbcTemplate的execute()方法执行SQL语句 :


3、带参数的更新

template.query("select * from web_person where id=?",Object[],new RowCallbackHandler(){    public void processRow(ResultSet rs) throws SQLException {     person.setId(rs.getInt("id"));   });