0
在我们的项目中,我遇到了以下方法:JdbcTemplate查询,它是什么?
public void saveDailyPlayersAccount(Date date) {
JdbcTemplate template = new JdbcTemplate(dataSource);
template.queryForRowSet("SELECT public.saveDailyPlayerAccount(?);", new Object[]{date});
}
问题是由查询字符串"SELECT public.saveDailyPlayerAccount(?);"
,传递给queryForRowSet
看起来并不像一个sql
-query引起的。这实际上意味着什么?
你可以看看这个:http://docs.spring.io/spring-framework/docs/2.0.x/api/org/springframework/jdbc/core/JdbcTemplate.html –