本文共 627 字,大约阅读时间需要 2 分钟。
jdbcTemplate.queryForInt("select count(*) from test");
jdbcTemplate.queryForMap("select * from test where name='name5'");
jdbcTemplate.queryForObject("select count(*) from test", Integer.class);
jdbcTemplate.queryForList("select * from test");
jdbcTemplate.queryForList("select name from test where name=?", new Object[]{"name5"}, String.class);
SqlRowSet rs = jdbcTemplate.queryForRowSet("select * from test");
转载于:https://blog.51cto.com/1197822/2157267