获取前一天日期SQL:select to_char(sysdate-1,'yyyy-mm-dd') from dual
获取当月第一天日期SQL:select to_char(sysdate-1,'yyyy-mm')||'-01' from dual
 
其他以此类推。。。。。。