首页 > 其他 > 详细

记录一些遇到的Ora Error

时间:2018-04-10 21:27:09      阅读:191      评论:0      收藏:0      [点我收藏+]

Ora Error

ORA-01830 date format picture ends before converting entire input string
Cause: A valid date format picture included extra data. The first part of the format picture was converted into a valid date, but the remaining data was not required.
Action: Check the specifications for date format pictures and correct the statement.

 

场景重现:

从Excel中复制了年/月/日 时:分:秒的文本数据到数据库,字段数据类型是varchar2,试图转成年-月-日的格式

首先使用了to_date(‘yyyy-mm-dd‘)的方法,报了ORA-01830

解决办法:to_date(‘yyyy/mm/dd‘)

 

 

1.在使用spool导出数据文件时,常使用‘|‘或者‘,’作为字段的分隔符,记得字段别加上别名

 

记录一些遇到的Ora Error

原文:https://www.cnblogs.com/MoreDrinkHotWater/p/8782664.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!