-1
我不得不從MySQL工作臺移植SQL查詢冬眠,但對於此查詢:休眠子查詢不起作用
Query query5_1 = em.createQuery("select result.id,result.name,result.surname,max(result.sales)
from (select m.warehousemen.id as id,m.warehousemen.name as name,m.warehousemen.surname as
surname,sum(m.size) as sales from MovementsEntity m group by m.warehousemen.id) result");
我得到這個錯誤:
請幫幫我,謝謝無論如何
總是建議您在此處發佈錯誤消息,因爲鏈接將來可能會中斷。 '結果'之前你是不是錯過了'as'? – techtabu