How to query for Double with Spring JDBC template query

Posted by s5804 on Stack Overflow See other posts from Stack Overflow or by s5804
Published on 2010-06-15T09:03:53Z Indexed on 2010/06/15 9:22 UTC
Read the original article Hit count: 408

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about sql