SELECT to_date(to_char(TRUNC(sysdate,'mm'),'yyyy/mm'),'yyyy/mm') from dual;--当月第一天
结果:2019/1/1
select extract(year from sysdate) from dual; --当前年结果:2019
select extract(month from sysdate) from dual; --本年到当月的月数
结果:1
select extract(day from sysdate) from dual; --本月到当日的天数
结果:16
select to_char(sysdate,'yyyyMM') from dual; --月
结果:1
select to_char(sysdate, 'dd' ) from dual; --日结果:30
select to_char(sysdate,'Q') from dual; --季结果:1
select to_char(sysdate,'iw') from dual; --周结果:5