Home  >  Article  >  Database  >  ORA-01810:格式代码出现两次 解决方法

ORA-01810:格式代码出现两次 解决方法

WBOY
WBOYOriginal
2016-06-07 16:49:181827browse

在写一个sql插入数据库的时候 to_date(

在写一个sql插入数据库的时候

to_date('20140509131034','yyyyMMddHHmmss')

报ORA-01810:格式代码出现两次

原因是java中的年月日和Oracle中的年月日表示形式不一样

oracle用MI来代表分钟,而不是java中的mm

修改为

to_date('20140509131034','yyyyMMddHHMISS')

然后又报ORA-01849:小时值必须介于1和12之间

因为24小时的形式显示出来要用HH24

修改为

to_date('20140509131034','yyyyMMddHH24MISS')

ORA-01172、ORA-01151错误处理

ORA-00600 [2662]错误解决

ORA-01078 和 LRM-00109 报错解决方法

ORA-00471 处理方法笔记

ORA-00314,redolog 损坏,,或丢失处理方法

ORA-00257 归档日志过大导致无法存储的解决办法

本文永久更新链接地址:

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn