How do you obtain the maximum possible date in Oracle?

前端 未结 5 1030
傲寒
傲寒 2020-12-10 11:25

Is there a function built into Oracle that will return the highest possible date that may be inserted into a date field?

5条回答
  •  天命终不由人
    2020-12-10 11:29

    Another ways, just for fun:

    SELECT to_date(5373484, 'J') + (1 - 1/24/60/60)
      FROM dual;
    
    SELECT date '9999-12-31' + (1 - 1/24/60/60) 
      FROM dual;
    

提交回复
热议问题