jdbc 模板计数查询ForInt并传递多个参数
2022-09-02 23:28:56
如何传入多个参数来获取计数。我试过这个,jdbcTemplate
queryForInt
Integer count = this.jdbcTemplate
.queryForInt("select count(name) from table_name where parameter1 = ? and parameter2 = ?", new Object[]{parameter1,parameter2});
但它表现为罢工。queryForInt