Update Sysdate - 10 min in Oracle
質問
I need to update a date column, with sysdate but 10 mins past. Is there any way to do?
Please help.
解決
Like this probably
select sysdate - 10/(24*60) from dual;
他のヒント
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
所属していません StackOverflow