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

喜欢ヅ旅行 2021-10-08 05:36 590阅读 0赞

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 就可以了

发表评论

表情:
评论列表 (有 0 条评论,590人围观)

还没有评论,来说两句吧...

相关阅读