未分类题

大家帮我看看这段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: 列名无效

【参考答案】

列名无效,那你就要检查一下字段是不是都存在
还有,hql里要和你的po......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题

未分类题
SQL列插入
未分类题
C++初学sizeof问题