急救!在使用ibatis+struts2写模糊查询时,报错
配置文件:
<select id="getGoodsByKeyword" resultClass="goods" parameterClass="string">
select * from goods where goodName like concat('%',#goodName#,'%')
</select>
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/dcst/imicai/bean/goods.xml.
--- The error occurred while applying a parameter map.
--- Check the getGoodsByKeyword-InlineParameterMap.
--- Check the statement (query failed).
--- Cause: java.sql.SQLException: Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'