select m.c2,m.c3,m.c4, d.id,d.orderId from AtdProcRec d, (select a.deptName c2,b.emplId c3,b.emplName c4 from HrDept a,HrEmployee b where a.deptNo=b.deptId) m where d.emplId=m.c3 and d.id.recDate like '"+Month+"%' 这个sql语句可以执行,但在hibernate中报错。高手看看什么问题。 -----------------------------
这个不是hibernate使用的hql语句标准啊。
保准的hql查询是
from table where.....
这个不是hibernate使用的hql语句标准啊。
保准的hql查询是
from table where.....
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货