问题
what's wrong with this HQL query :
select (
( select sum(base)/8 FROM com.agitech.erp.model.rhp.RhpEmployeRubric where ...)
+
( select sum(base)/8 FROM com.agitech.erp.model.rhp.RhpEmployeRubric where ...)
)
Having the exception :
unexpected end of subtree
i also try
select ( select sum(base)/8 FROM RhpEmployeRubric where ...) as sum1,
( select sum(base)/8 FROM RhpEmployeRubric where ...) as sum2
same exception !
来源:https://stackoverflow.com/questions/23303315/hql-query-sum-of-two-sub-select