hibernate查询错误,麻烦帮我查看一下,谢谢

[复制链接]
查看11 | 回复2 | 2010-12-1 11:32:22 | 显示全部楼层 |阅读模式
javax.servlet.ServletException: org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: all near line 1, column 41 [from com.acc_charge.orm.AccCharge201010 all where all.serviceNum='13017340991']; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: all near line 1, column 41 [from com.acc_charge.orm.AccCharge201010 all where all.serviceNum='13017340991'

回复

使用道具 举报

千问 | 2010-12-1 11:32:22 | 显示全部楼层
把那个别名all换一个,那个是sql关键词,不能用
回复

使用道具 举报

千问 | 2010-12-1 11:32:22 | 显示全部楼层
肯定sql写得有问题看你也是单表查询 hibernate上面不是有很多方法嘛 用不着写sql
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行