char int 转换不允许

来源:互联网 发布:java double 计算误差 编辑:程序博客网 时间:2024/05/17 07:02

sybase    websphere    linux


Implicit conversion from datatype 'CHAR' to 'INT' is not allowed.  Use the CONVERT function to run this query.


ibatis中如果对于数据库中的字段类型为int 那么查询中传递的参数也应该是整数executeQueryForObject("quertSQL",new Integer(blockid));