org.hibernate.hql.internal.ast.QuerySyntaxExceptionunexpected token: on near line 1


select d.content,count(s.status) from MesmachineStatus s , Mesmachinestatusdetail d where s.status=d.status group by s.status 正確地 


SELECT d.content,count(s.status)from Mes_machinestatus s left JOIN mes_machinestatusdetail d  on s.status=d.status GROUP BY s.status 錯誤的 


hql 不支持 left join on   要改成where 就可以了

 

 

 

 

來源:http://blog.csdn.net/zxf1242652895/article/details/53212708


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM