Pergunta

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

Please help.

Foi útil?

Solução

Like this probably

select sysdate - 10/(24*60) from dual;

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top