当前位置: 代码迷 >> Oracle开发 >> 表示上月的SQL语句?解决方法
  详细解决方案

表示上月的SQL语句?解决方法

热度:39   发布时间:2016-04-24 07:52:25.0
表示上月的SQL语句?
当前月的上月,SQL语句?

------解决方案--------------------
select to_number(to_char(sysdate, 'MM '))-1 month from dual;
------解决方案--------------------
select add_months(sysdate,-1) from dual
  相关解决方案