spring jdbcTemplate返回RS

SqlRowSet rs=jdbcTemplate.queryForRowSet(sql);
  int i=1;
  while(rs.next())
  {
   question+=i+":"+rs.getString(2)+rs.getString(3)+"\n";
   i++;
  }
原文地址:https://www.cnblogs.com/willpower/p/1246283.html