首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

hibernate 查询 各位大仙帮忙改改 谢了~解决方法

2012-04-12 
hibernate 查询各位大仙帮忙改改谢了~~~querysession.createQuery(from Seedlingforecast aps wherefid

hibernate 查询 各位大仙帮忙改改 谢了~~~
query=session.createQuery("from Seedlingforecast aps where fid in(select min(fid) from Seedlingforecast group by (aps.pest.pno and aps.countryseedling.csno))");

[解决办法]
FROM Event as t where t.id in (SELECT min(t1.id) from Event as t1 group by t1.date,t1.title)
类似的没有问题啊
from Seedlingforecast aps where aps.fid in(select min(aps1.fid) from Seedlingforecast aps1 group by aps1.pest.pno,aps1.countryseedling.csno)

热点排行