求解
  下面的SQL语句应该返回结果集的是sum的和把
我怎么写才能实现先把select *from incount where date between '" + id1 + "' and '"  + id2 + "' and kfproduct like '%" + id3 + "%'"; 遍历出来在求和必须是先遍历在求和String sql="select sum(sl) as sumsl from incount where date between '" + id1 + "' and '"  + id2 + "' and kfproduct like '%" + id3 + "%'";