六狼论坛's Archiver
首页
›
Oracle
› oracle中的日期函数
李雨泽
发表于 2013-1-29 15:22:36
oracle中的日期函数
--取当前时间的下一个月时间(格式为:yyyy-MM)
select to_char(add_months(sysdate,1),'yyyy-MM') from dual;
--取当前时间的上个月时间
select add_months(sysdate,-1) from dual;
页:
[1]
查看完整版本:
oracle中的日期函数