(1)--取系统当前日期 select sysdate from dual; (2)--加月 select add_months(sysdate,2) from dual; --减月 select add_months(sysdate,-2) from dual; (3)--求当月最后一天 select last_day(sysdate) from dual; select last_day(sysdate-4) from dual; (4)--日期截取 select trunc(sysdate) from dual;--按日截取(把时间截掉) select trunc(sysdate,'mm') from dual;--按月截取(把日截掉) select trunc(sysdate,'yyyy') from dual;--按年截取 select trunc(sysdate,'hh') from dual;--按小时截取 select trunc(sysdate,'mi') from dual;--按分钟截取 --没有按秒截取