错误信息:
Caused by: org.hibernate.hql.ast.QuerySyntaxException: expecting CLOSE, found 'null' near line 1, column 374 [select word from StatSiteSearchWordDay where mpId = :mpId_1 and strDay between :strDay_2lo and :strDay_2hi group by word order by sum(times]
at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31) ~[hibernate3.jar:3.2.5.ga]
错误原因:orderBy 字段 sum(times 这个缺少 ‘)’
本文详细解析了Hibernate框架中出现的QuerySyntaxException错误,特别是由于SQL语句中orderBy子句的sum函数缺少括号导致的问题。通过分析错误堆栈和SQL语句,提供了解决方案并强调了SQL语句正确构造的重要性。
4150

被折叠的 条评论
为什么被折叠?



