Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/06/2011, 09:27
hcbosch
 
Fecha de Ingreso: julio-2010
Mensajes: 64
Antigüedad: 13 años, 9 meses
Puntos: 1
extraer hora en oracle

Hola:
Necesito extraer la hora de un campo tipo date en oracle. Esta sentencia:
SELECT EXTRACT(HOUR FROM to_date('2011-05-30 06: 00','yyyy-mm-dd hh24:mi') )
FROM TRAFFIC_DISP_DEST

me da el siguiente error:ORA-30076: invalid extract field for extract source
alguien me ayuda?