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 就可以了
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 就可以了
相关文章推荐
- org.hibernate.hql.internal.ast.QuerySyntaxExceptionunexpected token: on near line 1
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 3解决方法
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1解决方案
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: u near line 1, column 55 [fro
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1, column 8
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: b near line 1, column 49...
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: ( near line 1, column 16
- Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token:
- 求帮助org.hibernate.hql.ast.QuerySyntaxException: unexpected token: id near line 1, column 35 [from com
- 异常积累:org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token:
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: from near line 1, column 17 [select co
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token 异常解决
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected end of subtree []
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token 的解决
- HQL子查询报错:org.hibernate.hql.ast.QuerySyntaxException: unexpected token...
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: where near line
- org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped
- 异常收集-org.hibernate.hql.internal.ast.QuerySyntaxException: activityinfo is not mapped
- org.hibernate.hql.internal.ast.QuerySyntaxException: Exam is not mapped
- org.hibernate.hql.internal.ast.QuerySyntaxException: XXX is not mapped [from XXX]