How to query for Double with Spring JDBC template query
- by s5804
How do one query for a double with the Spring JDBC temple?
For example:
public double getAverageScore() {
return jdbctemplate.queryFor???("select avg(score) from test");
}
There are queryForInt and queryForLong, but no queryForDouble