last_day:返回包含了日期参数的月份的最后一天的日期。 select last_day(sysdate) from dual; LAST_DAY(SYSDATE) -- ----------------- 2008 / 02 / 29 11 : 24 : 04 SQL > select last_day(date ' 1892-02-15 ' ) from dual; LAST_DAY(DATE ' 1892- ------------------- 1892/02/29 00:00:00 add_months:在当前日期的基础上加/减月份,返回加/减后的日期。 SQL > select add_months(sysdate, - 3 ) three_months_ago from dual; THREE_MONTHS_AGO -- ----------------- 2007 / 11 / 16 11 : 23 : 16