ORA-00001 : Unique Constraint Violated Caused by DATE VS Timestamp(6)
来源:互联网 发布:linux挂载ntfs硬盘 编辑:程序博客网 时间:2024/06/03 14:51
Create table tt1 (dt date primary key);Create table tt2(dt timestamp(6) primary key);Insert into tt2 values('25-NOV-13 04.18.47.138746000 PM');Insert into tt2 values('25-NOV-13 04.18.47.66 PM');commit;Insert into tt1 select * from tt2;
ORA-00001: unique constraint violated
unique constraint (%s.%s) violated"
This is because Oracle does not store fractional part for DATE data type. These 2 rows are considered duplicate in TT1. This issue could happen in data migration project if you had not noticed the difference between date and timestamp(6) data type.
0 0
- ORA-00001 : Unique Constraint Violated Caused by DATE VS Timestamp(6)
- 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
- 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.BatchUpdateException: ORA-00001: unique constraint (IEVSP.PK_C_CSERVICES) violated
- ORA-00001: unique constraint pk_****_key violated oracle imp 语句导入数据对oracle的数据字段操作顺序
- ORA-02292:integrity constraint(xx) violated
- ORA-02291: integrity constraint (INFORES_GZ_PJ2.FK_TC_DEV_PROPERTY_GRP_PROID) violated - parent key
- Onhand Qty(Tree) Diagnostics Scripts R12
- Android 下挂载android的nfs文件系统
- Drools学习笔记1-规则引擎介绍
- 用户在页面上提交表单到服务器时,因为插入html代码报错
- 编写android HAL举例: lights
- ORA-00001 : Unique Constraint Violated Caused by DATE VS Timestamp(6)
- naver各个词典服务
- android 几种获得收益渠道的封装
- ORA-00845: MEMORY_TARGET not Supported on This System
- 权限管理 (三)DWR实现异步通信
- 25个增强iOS应用程序性能的提示和技巧
- Android开发进阶之NIO非阻塞包
- 十种贵人可遇不可求
- ServletContext例子