java.sql.BatchUpdateException: ORA-00001: unique constraint (IEVSP.PK_C_CSERVICES) violated
来源:互联网 发布:crazepony源码 编辑:程序博客网 时间:2024/05/20 16:44
原因:由序列获取的表主键比表中的主键小,导致主键不唯一。
确认原因方法:
可以先看下当前序列生成的值是多少:
select SEQ_C_CSERVICES.NEXTVAL from dual; --a
然后查看数据库里这个字段的最大值是多少
select max(C.主键) from C_CSERVICES C; --b
若b>a,则确认为此原因。
解决方法:
将序列中NEXTVAL改为 (b+1)。可进入 SEQ_CSERVICES.NEXTVAL 直接修改 Next nuber 值即可。
0 0
- java.sql.BatchUpdateException: ORA-00001: unique constraint (IEVSP.PK_C_CSERVICES) violated
- ORA-00001: unique constraint (.......) violated
- ORA-00001 unique constraint (string.string) violated
- ORA-00001: unique constraint (XINNET20100422.PK_T_THEME_ORDER) violated
- ORA-00001: unique constraint (...) violated解决方案
- ORA-00001: unique constraint (CONTRACT_MGR.PK_T_SUPPLIER) violated
- java.sql.BatchUpdateException: ORA-02291: integrity constraint
- Statspack ORA-00001 unique constraint violated错误的解决
- ORA-00001 unique constraint violated错误的解决
- ORA-00001 unique constraint violated错误的解决 (
- ORA-00001: unique constraint violated并不一定是主键冲突
- ORA-00001: unique constraint (...) violated并不一定是数据冲突
- ORA-00001: unique constraint (...) violated并不一定是数据冲突
- impdp ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
- ORA-00001: unique constraint (...) violated并不一定是数据冲突
- java.sql.SQLException: ORA-02291: integrity constraint violated - par
- ORA-00001 : Unique Constraint Violated Caused by DATE VS Timestamp(6)
- java.sql.BatchUpdateException: ORA-12899
- springmvc 集成 tiles2实现页面模板局部刷新(一)
- 简述HTML DOM及其节点分类
- 浅谈Java中的Set、List、Map的区别
- 网络协议
- MacOS Sierra下运行react-native start出现Error watching file for changes: EMFILE问题解决
- java.sql.BatchUpdateException: ORA-00001: unique constraint (IEVSP.PK_C_CSERVICES) violated
- git 常用命令
- Dialogfragment嵌套Viewpager
- Android现在实现Tab类型的界面
- spring用到的设计模式
- spark 2.0.1 和zeppelin 0.6.2 编译及与hadoop yarn关联
- 文章标题
- svn
- C++实现任意表达时候求值(栈)