Oracle时间戳,最大值和最小值 [英] Oracle Timestamp, Max and Minimal Values
本文介绍了Oracle时间戳,最大值和最小值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我也在Oracle文档中也在搜索以下内容:
I was searching, also in the Oracle Doc, for the following:
- Oracle中时间戳的范围是多少?
我知道日期是-4712,即从1月1日到9999年12月31日,但是时间戳是什么呢?
I know for date it is -4712, Jan-01 to 9999 Dec-31, but what for Timestamp?
有人可以在哪里搜索的提示或提示吗?
Anyone a clue or hint where I can search?
推荐答案
您始终可以尝试:
SQL> select to_timestamp( '9999-12-31 23:59:59', 'yyyy-mm-dd hh24:mi:ss' ) from dual;
TO_TIMESTAMP('9999-12-3123:59:59','YYYY-MM-DDHH24:MI:SS')
---------------------------------------------------------------------------
31-DEC-99 11.59.59.000000000 PM
和:
SQL> select to_timestamp( '9999-12-31 23:59:59', 'yyyy-mm-dd hh24:mi:ss' )+1 from dual;
select to_timestamp( '9999-12-31 23:59:59', 'yyyy-mm-dd hh24:mi:ss' )+1 from dual
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
这篇关于Oracle时间戳,最大值和最小值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文