大家帮我看看这段SQL哪出现了语法错误,为什么报列名无效,在PL/SQL里能正确执行啊

Struts Problem Report

Struts has detected an unhandled exception:
Messages:

列名无效
Hibernate operation: could not execute query; bad SQL grammar [ select a.* from knowledge_answers a inner join user_accounts d on a.answer_user=d.id where 1=1 and a.answer_user=15]; nested exception is java.sql.SQLException: 列名无效

第1个回答  2011-08-14
列名无效,那你就要检查一下字段是不是都存在啊.
第2个回答  2011-08-14
hql里要和你的pojo类里的名字对应起来!
第3个回答  2011-08-17
knowledge_answers ,这是你的表名还是类名啊??
第4个回答  2011-08-28
618171861269xception: 列名无效本回答被提问者采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网