oracle 日期函数 求年的最后一天、第一天,月的最后一天
时间:2014-06-01 00:07:37
收藏:0
阅读:345
add_months(trunc(to_date(‘2013‘,‘yyyy‘) ,‘yyyy‘),12)-1 2013年最后一天
trunc(to_date(‘2013‘,‘yyyy‘) ,‘yyyy‘) 2013年第一天
5月的最后一天
select last_day(to_date(‘2013-05‘,‘yyyy-mm‘)) d from dual
评论(0)