加1天
select to_date('2019-08-15 22:03:10','yyyy-mm-dd hh24:mi:ss')+1 next_day from dual;
加1小时
select to_date('2019-08-15 22:03:10','yyyy-mm-dd hh24:mi:ss')+1/24 next_hour from dual;
加1分钟
select to_date('2019-08-15 22:03:10','yyyy-mm-dd hh24:mi:ss')+1/(24*60) next_minute from dual;
加1秒
select to_date('2019-08-15 22:03:10','yyyy-mm-dd hh24:mi:ss')+1/(24*60*60) next_second from dual;

  

 posted on 2026-09-04 09:46  dianli  阅读(3)  评论(0)    收藏  举报