LAST_DAY()
- Syntax
LAST_DAY(DATE)
- Purpose
LAST_DAY returns the date of last day of month that contains date
- Example
SELECT SYSDATE, LAST_DAY(SYSDATE) "Last", LAST_DAY(SYSDATE) - SYSDATE "Days Left" FROM DUAL;
'DB > Oracle' 카테고리의 다른 글
[Oracle] How to get a weekend (0) | 2016.06.07 |
---|---|
[Oracle] START WITH, CONNTECT BY (0) | 2016.04.15 |
[Oracle] ORA-01427 (0) | 2016.04.05 |
[Oracle] ADD_MONTHS() (0) | 2016.04.04 |
[Oracle] - Explicit Cursor (0) | 2016.04.04 |