[sql] 날짜모음

Posted by yvette.theomom's blog
2014. 9. 3. 16:57 DB 개발/030_SQL
반응형

select                    to_char(add_months(to_date(&ARG_YYYYMMDD,'YYYYMMDD'),+1),'YYYY                MMDD') AS YYYYMMDD_NEXT_MONTH 

  from 

dual;

==>

&ARG_YYYYMMDD : 20140901

RESULT:20141001