trunc(last_day(to_date('2015-05-08','yyyy-mm-dd'))) --获取当月最后一天 trunc(to_date('2015-05-08','yyyy-mm-dd'), 'mm')--获取当月第一天