com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'e.title' in

来源:互联网 发布:编程靠天赋 编辑:程序博客网 时间:2024/05/22 13:41

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'e.title' in

[ERROR]

com.ibatis.common.jdbc.exception.NestedSQLException:   

--- The error occurred while applying a parameter map.  

--- Check the studentExam.getList-InlineParameterMap.  

--- Check the statement (query failed).  

--- Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'e.title' in 'field list'

====================================================================================================

 

这个错误是在使用ibatis时抛出的。

 

原因是    e(这是别名)    这张表中,没有   title   这个字段。

 

解决方法:

检查 sql语句中 表名是否写对,

检查 sql语句中 表里面的字段名是否写对。

原创粉丝点击