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.....