jdbc.exceptions.jdbc4.MySQLSyntaxErrorException

4437阅读 0评论2011-07-26 qyf404
分类:Java

[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语句中 表里面的字段名是否写对。

上一篇:安装MPlayer播放器(号称Linux中的万能播放器)
下一篇:java.lang.NullPointerException