![]() |
|||
|
![]() |
![]() |
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
![]() Term: MONTHS_BETWEEN
Definition: MONTHS_BETWEEN (D1, D2) where D1 and D2 are of date datatype. Example Usage: As shown in the SQL statement below, if the first argument date is greater than second argument date, the result is positive. SQL> SELECT MONTHS_BETWEEN(TO_DATE('10-12-2010','DD-MM-YYYY HH24:MI:SS'), If the first argument date is less than the second argument date, the result is negative. SQL> SELECT MONTHS_BETWEEN(SYSDATE, SYSDATE+1 ) DIFF Related Links: Related Code Snippets:
![]() |
![]() |
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2025 psoug.org |