a_marca de tiempo()
Necesitas usar to_timestamp()
para convertir su cadena a una timestamp
adecuada valor:
to_timestamp('12-01-2012 21:24:00', 'dd-mm-yyyy hh24:mi:ss')
hasta la fecha()
Si su columna es del tipo DATE
(que también admite segundos), debe usar to_date()
to_date('12-01-2012 21:24:00', 'dd-mm-yyyy hh24:mi:ss')
Ejemplo
Para llevar esto a un where
condición use lo siguiente:
select *
from TableA
where startdate >= to_timestamp('12-01-2012 21:24:00', 'dd-mm-yyyy hh24:mi:ss')
and startdate <= to_timestamp('12-01-2012 21:25:33', 'dd-mm-yyyy hh24:mi:ss')
Nota
Nunca necesitas usar to_timestamp()
en una columna que es del tipo timestamp
.