java JdbcTemplate查询,它是什么?
在我们的项目中,我遇到了以下方法:
public void saveDailyPlayersAccount(Date date) {
JdbcTemplate template = new JdbcTemplate(dataSource);
template.queryForRowSet("SELECT public.saveDailyPlayerAccount(?);", new Object[]{date});
}
问题是由传递给queryForRowSet
的查询字符串"SELECT public.saveDailyPlayerAccount(?);"
引起的,它看起来不像sql
-query。这到底是什么意思
# 1 楼答案
看起来像是对存储过程的调用。在哪里?被
date
替换(实际上是Object[]
)