表示上月的SQL语句?解决方法
表示上月的SQL语句?
当前月的上月,SQL语句?
------解决方案--------------------
select to_number(to_char(sysdate, 'MM '))-1 month from dual;
------解决方案--------------------
select add_months(sysdate,-1) from dual
当前月的上月,SQL语句?
------解决方案--------------------
select to_number(to_char(sysdate, 'MM '))-1 month from dual;
------解决方案--------------------
select add_months(sysdate,-1) from dual