Question : how to add 2 minutes to timestamp in Oracle

Would like to add several minutes to a systimestamp, ie,
select systimestamp from dual;
how to add 2 minutes to the result from the qeury?

Answer : how to add 2 minutes to timestamp in Oracle

actually, adding 2/1440 will implicitly convert your result to a DATE, you'll lose sub-second precision and timezone information, it is safe to do with DATE types though

if you want to add 2 minutes to a timestamp and keep the timestamp info then use an interval

select systimestamp + numtodsinterval(2,'MINUTE') from dual
Random Solutions  
 
programming4us programming4us