Here is a simple template for how to add hours, minutes and seconds using Oracle timestamp expressions:
select sysdate, sysdate+1/24 "+ 1hr", sysdate+1/24/60 "+ 1 min", sysdate+1/24/60/60 "+ 1 sec", sysdate+10/24/60/60 "+ 10 sec" from dual;
SYSDATE | + 1hr | + 1 min | + 1 sec | + 10 sec |
---|---|---|---|---|
17.01.2019 13:34:38 | 17.01.2019 14:34:38 | 17.01.2019 13:35:38 | 17.01.2019 13:34:39 | 17.01.2019 13:34:48 |
No comments:
Post a Comment