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

    xiaoxiao2021-11-10  51

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

    转载请注明原文地址: https://ju.6miu.com/read-678157.html

    最新回复(0)