Example using NUMTODSINTERVAL with SYSDATE:
Example-- Add 20 second in system time
select to_char(sysdate,'dd/mm/yyyy hh:mi:ss'),to_char (SYSDATE + NUMTODSINTERVAL(20,'SECOND'),'dd/mm/yyyy hh:mi:ss') from dual;
One of the string constants: 'DAY', 'HOUR', 'MINUTE', or 'SECOND'.
No comments:
Post a Comment