νOracle ǰڼһ졢һ

ʱ䣺2016-7-15 16:31:29

sysdate+1 һ
sysdate+1/24 1Сʱ
sysdate+1/(24*60) 1
sysdate+1/(24*60*60) 1
0.001

ӷ
select sysdate,add_months(sysdate,12) from dual;        --1
select sysdate,add_months(sysdate,1) from dual;        --1
select sysdate,to_char(sysdate+7,'yyyy-mm-dd HH24:MI:SS') from dual;  --1
select sysdate,to_char(sysdate+1,'yyyy-mm-dd HH24:MI:SS') from dual;  --1
select sysdate,to_char(sysdate+1/24,'yyyy-mm-dd HH24:MI:SS') from dual;  --1Сʱ
select sysdate,to_char(sysdate+1/24/60,'yyyy-mm-dd HH24:MI:SS') from dual;  --1
select sysdate,to_char(sysdate+1/24/60/60,'yyyy-mm-dd HH24:MI:SS') from dual;  --1

select sysdate,add_months(sysdate,-12) from dual;        --1
select sysdate,add_months(sysdate,-1) from dual;        --1
select sysdate,to_char(sysdate-7,'yyyy-mm-dd HH24:MI:SS') from dual;  --1
select sysdate,to_char(sysdate-1,'yyyy-mm-dd HH24:MI:SS') from dual;  --1
select sysdate,to_char(sysdate-1/24,'yyyy-mm-dd HH24:MI:SS') from dual;  --1Сʱ
select sysdate,to_char(sysdate-1/24/60,'yyyy-mm-dd HH24:MI:SS') from dual;  --1
select sysdate,to_char(sysdate-1/24/60/60,'yyyy-mm-dd HH24:MI:SS') from dual;  --1


οhttp://blog.csdn.net/hyeidolon/article/details/8290724