oracle中date错误,ORA-01830: date format picture ends before converting entire input string
来源:互联网 发布:mac os sierra壁纸 编辑:程序博客网 时间:2024/06/06 02:03
select "TO_DATE"('2016/08/11 00:00:00', 'yyyy/mm/dd') from dual
报错ORA-01830: date format picture ends before converting entire input string
错误产生原因:date类型不能包含秒以后的精度。
如日期:2012-06-20 21:01:24
在使用to_date() 函数时有可能出现此错误
解决办法:
to_date('2012-06-20 21:01:24','yyyy-mm-dd') 是错误的
使用instr(详细用法 http://www.cnblogs.com/BetterWF/archive/2012/06/20/2556444.html) 函数配合使用,例如:
to_date( substr('2012-1-1 00:00:00',0,INSTR('2012-1-1 00:00:00', ':', 1, 1)-3),'yyyy-mm-dd') 是正确的
0 0
- oracle中date错误,ORA-01830: date format picture ends before converting entire input string
- Oracle异常date format picture ends before converting entire input string ora-01830oracle
- The error: ORA-01830: date format picture ends before converting entire input string..
- date format picture ends before converting entire input string(日期格式图片在转换整个输入字符串之前结束)
- java.sql.SQLException: ORA-01830: date format picture ends before converting ent
- Oracle - ORA-01840: input value not long enough for date format
- Oracle to_char(date,format)
- Date、String.format常见用法
- Java format date to String or String to date
- php中date() format具体内容
- Ext中Date format含义
- Ext中Date format含义
- Date format
- Date Format
- date format
- date format
- Date Format
- Compare two different format date string
- 如何获取底部虚拟按键栏的高度
- Java并发编程:Lock
- HTTP协议详解
- MongoDB分布式设计-主从复制,副本集
- iOS 工厂模式
- oracle中date错误,ORA-01830: date format picture ends before converting entire input string
- 使用HaProxy实现Thrift服务端的负载均衡
- iOS应用程序内购/内付费(一)
- LTSpline
- Java反射机制
- 在 C++ 中使用QML对象
- Hdu 5664 Lady CA and the graph(有n个点的树,给定根,叫你找第k大的特殊链)
- 网速魔法师 v1.8 官方安装版
- git 使用教程,常用命令