– query() :: select 문 사용
위와 같이 다양한 query 메소드들을 제공하고 있습니다.
예제 코드들)
int rowCount = this.jdbcTemplate.queryForInt(“select count(0) from t_accrual”);
int countOfActorsNamedJoe
= this.jdbcTemplate.queryForInt(“select count(0) from t_actors where first_name
= ?”, new Object[]{“Joe”});
String surname = (String) this.jdbcTemplate
.queryForObject(“select surname from