Update Sysdate - 10 min in Oracle

21.2k Views Asked by At

I need to update a date column, with sysdate but 10 mins past. Is there any way to do?

Please help.

2

There are 2 best solutions below

7
On BEST ANSWER

Like this probably

select sysdate - 10/(24*60) from dual;
3
On
UPDATE the_table
   SET the_column = current_timestamp - interval '10' minute
WHERE pk = 42;

It certainly works, see here: http://sqlfiddle.com/#!4/a1986/2