How are dates stored in Oracle?

后端 未结 3 567
我寻月下人不归
我寻月下人不归 2020-11-22 01:28

How are dates stored in Oracle? For example I know most systems use Epoch time to determine what time it is. By calculating how many seconds away from January 1st 1970. Does

3条回答
  •  渐次进展
    2020-11-22 02:03

    From the manual at http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#sthref151

    For each DATE value, Oracle stores the following information: year, month, day, hour, minute, and second

    So apparently it's not storing an epoch value which is also confirmed by this chapter of the manual:

    The database stores dates internally as numbers. Dates are stored in fixed-length fields of 7 bytes each, corresponding to century, year, month, day, hour, minute, and second

提交回复
热议问题