您的位置:首页 > 产品设计 > UI/UE

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

2016-11-18 09:41 573 查看
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 就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java select
相关文章推荐