我使用select
语句检索了List<SomeBean>
。现在,我试图insert
一样。这个插入语句工作正常;但是,我无法插入空值。该表没有任何NOT NULL
限制。以下异常引发:在数据库中插入null
org.springframework.jdbc.UncategorizedSQLException: Error setting null for parameter #4 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: Invalid column type
我怎样才能在MyBatis的插入空值?
如果您没有设置它在你的'insert'声明???值会发生什么! – 2013-04-24 11:58:07