Oracle下一天函数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle下一天函数相关的知识,希望对你有一定的参考价值。
A few examples of the Oracle NEXT_DAY function.
--NEXT_DAY --Example 1 SELECT SYSDATE, NEXT_DAY(SYSDATE, 'THURSDAY') AS next_date_example FROM dual; --Example 2 - same day as today SELECT SYSDATE, NEXT_DAY(SYSDATE, 'WED') AS next_date_example FROM dual; --Example 3 - timestamp SELECT SYSTIMESTAMP, NEXT_DAY(SYSTIMESTAMP, 'SUN') AS next_date_example FROM dual; --Example 4 - invalid day SELECT SYSDATE, NEXT_DAY(SYSDATE, 'W') AS next_date_example FROM dual; --Example 5 - entered date SELECT NEXT_DAY('24-JUN-2016', 'THU') AS next_date_example FROM dual;
以上是关于Oracle下一天函数的主要内容,如果未能解决你的问题,请参考以下文章
Oracle中获取系统时间前一天的函数为sysdate - interval '1' day