Вопрос

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top