在oracle中的null为不确定的意思,存储null时,mybatis解析不到oracle字段类型。
所以写SQL时最好加上具体的字段类型。如
insert into user(id,name,age) values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{age,jdbcType=NUMBER})
在oracle中的null为不确定的意思,存储null时,mybatis解析不到oracle字段类型。
所以写SQL时最好加上具体的字段类型。如
insert into user(id,name,age) values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{age,jdbcType=NUMBER})
转载于:https://www.cnblogs.com/wendelhuang/p/6933309.html