java.sql.SQLException: 无效的列类型: getLong not implemented for class oracle.jdbc.driver.T4CRowidAccessor
Springboot+MYbaits框架下,使用以下注解操作oracle插入数据时报错
@Insert("insert into student (stuid,name)values(#{stuid},#{name})")@Options(useGeneratedKeys = true,keyProperty = "stuid")public int insertStu(Student student);
查了下 useGeneratedKeys 要求数据库本身具备主键自动增长的功能,比如说,mysql,sqlserver可以使用useGeneratedKeys =true 这功能,
不支持主键自动增长的数据库是不能使用useGeneratedKeys =true的,而 oracle不支持主键自动增长的功能,因此换为使用oracle序列功能就可以了
@Insert("insert into student (stuid,name)values(SEQ_STUDENT.nextval,#{name})")@Options(useGeneratedKeys = false,keyProperty = "stuid")public int insertStu(Student student);
java.sql.SQLException: 无效的列类型: getLong not implemented for class oracle.jdbc.driver.T4CRowidAccessor相关推荐
- getLong not implemented for class oracle.jdbc.driver.T4CRowidAccessor
症状: SpringMVC+MyBatis向数据库插入数据,主键应用ORACLE中自己设置的自增序列会发生如下错误: nested exception is Java.sql.SQLException ...
- 使用iBatis中报 java.sql.SQLException: 无效的列类型异常
1. <!--Content表 插入应的记录到数据库中 --> 2. < insert id = "insertContent" parameterClass ...
- mybatis报错:java.sql.SQLException: 无效的列类型: 1111
java.sql.SQLException: 无效的列类型: 1111 at oracle.jdbc.driver.OracleStatement.getInternalType(Oracle ...
- java.sql.SQLException: 无效的列类型: 1111 (jdbcType相关)
转自:http://blog.csdn.net/stronglyh/article/details/45369611 mybatis报错:java.sql.SQLException: 无效的列类型: ...
- Cause: java.sql.SQLException: 无效的列类型: 1111解决
在页面提交数据时,出现如下错误信息: Error setting null for parameter #7 with JdbcType OTHER . Try setting a different ...
- java.sql.SQLException: 无效的列类型: 1111 报错问题解决
在项目中利用Mybatis做持久化框架,XXXMapper.xml中insert语句做插入时,偶然会遇到一些报错或者说是问题,如下: 报错日志: nested exception is org.apa ...
- oracle插入报错-Caused by: java.sql.SQLException: 无效的列类型: 16
一.问题截图 如图我们用kettle将SqlServer数据抽取至oracle数据,因两边数据库的字段类型不一致,导致数据同步过去时报Caused by: java.sql.SQLException: ...
- java.sql.SQLException: 无效的列类型
从数据库查询数据时,报错 java.sql.SQLException: 无效的列类型,有一种情况是: sql语句select中没有对应列XXX的字段,导致在rs.getXXX("XXX&qu ...
- Cause: java.sql.SQLException: 无效的列类型
错误 org.springframework.jdbc.UncategorizedSQLException: Error setting null for parameter #1 with Jdbc ...
最新文章
- 为jQuery写插件
- DNS隧道工具汇总——补充,还有IP over DNS的工具NSTX、Iodine、DNSCat
- python编码规范手册-python编码规范
- 【数据竞赛】“达观杯”文本智能处理挑战赛5
- 学java语言之前学什么利于学习?
- linux 限制连接时间,linux抵御DDoS攻击方法 通过iptables限制TCP连接和频率
- nginx 注释配置及详解
- [转]定了!2020年,6种将死的编程语言!
- Linux基金会亚太区与开源中国达成战略合作 共同推动中国开源人才培养
- python封装举例_Python+Pycharm—学习1—封装导入
- 为什么有些小老板,做了一辈子,还是没办法发展大?
- swiper 定义放多少张图片_小程序瀑布流组件:支持翻页与图片懒加载
- java 字符串 移位_算法学习之字符串左移和右移
- C语言运算符优先级表详解
- 论文阅读: 3D Human Pose Estimation in the Wild by Adversarial Learning
- 红旗linux怎么升级,[原]使用yum更新红旗Linux
- Android官方文档翻译-Broadcasts
- android 嘶嘶 录音 电流音_教你如何轻松解决拾音器的“电流声”
- 西门子PLC1200伺服库卡机器人12工位博图程序例程,组态采用昆仑通态触摸屏
- Modeling Point Clouds with Self-Attention and GSS