修改以下:
List sol = getHibernateTemplate().find("select s.userId as user,sum(s.totalScore) as score from Score as s group by s.userId");请教各位大虾,请问下以上语句怎样才能把user和total值取出来呢?谢谢先!
List sol = getHibernateTemplate().find("select s.userId as user,sum(s.totalScore) as score from Score as s group by s.userId");请教各位大虾,请问下以上语句怎样才能把user和total值取出来呢?谢谢先!
解决方案 »
- SSH配置没报错,但运行程序时为什么spring和hibernate不起作用
- org.apache.commons.collections.Fasthashmap??
- SQLServerException大家帮忙找找错呀
- 求解```使用hibernate的DetachedCriteria查询加密字段
- hashcode和equals
- ssh整合的问题
- 为何总找不到javax.ejb
- STRURS乱码求救
- [在线等待]jsp发邮件出现问题,谁能告诉我是什么原因
- mybatis的not in和in问题
- 100分求struts2声明式的使用拦截器的配置
- struts2 getter、setter传值问题
List sol = getHibernateTemplate().find("select s.userId as user,sum(s.totalScore) as score from Score as s group by s.userId"); 请教各位大虾,请问下以上语句怎样才能把user和score值取出来呢?谢谢先!
System.out.println(o[0]+ " " +o[1]);就能出来了