ORACLE 错误 ora-01830 解决方法
2015-07-10 14:12
841 查看
http://www.cnblogs.com/BetterWF/archive/2012/06/20/2556442.html
错误产生原因: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') 是正确的
错误产生原因: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') 是正确的
相关文章推荐
- Solaris-[ODBC-ORACLE WP Driver]遇到的几个问题
- asp连接oracle,在 movenext 时才出错 80004005
- oracle OFA
- oracle drop用户cascade 无法顺利删除问题处理-ORA-00604和ORA-00942错误
- 未能加载文件或程序集“Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342"
- 【技术支持】Oracle报连接超时,TNS-12535:TNS:operation timed out。WARNING: inbound connection timed out (ORA-3136)
- Oracle数据库备份与恢复 - RMAN配置参数
- oracle全文索引
- Oracle 远程连接
- Oracle 键表总结
- oracle中的exists和not exists和in用法详解
- Fatal NI connect error 12170
- ORA-12012: error on auto execute of job “ORACLE_OCM"."MGMT_CONFIG_JOB_2_1”
- oracle客户端不需要配置tnsnames.ora文件直接连接服务器数据库
- Oracle to_char格式化函数 显示毫秒
- Oracle to_char格式化函数
- oracle取字符串长度的函数length()和hengthb()
- 在Oracle 11.2的数据库中建表时遇到 RESULT_CACHE (MODE DEFAULT) ORA-00922: missing or invalid option
- oracle 集合 varray
- oracle 集合 nested_table