Pregunta

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

Please help.

¿Fue útil?

Solución

Like this probably

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

Otros consejos

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 bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top