Ver Mensaje Individual
  #5  
Antiguo 12-09-2006
Avatar de jachguate
jachguate jachguate is offline
Miembro
 
Registrado: may 2003
Ubicación: Guatemala
Posts: 6.254
Reputación: 28
jachguate Va por buen camino
Hacelo así:

Código SQL [-]
Update tabla
   set fecha = (extract(year from fecha) + 100)
               ||'-'||extract(month from fecha)
               ||'-'||extract(day from fecha)
 where extract(year from fecha) = 1906;

Hasta luego.

__________________
Juan Antonio Castillo Hernández (jachguate)
Guía de Estilo | Etiqueta CODE | Búsca antes de preguntar | blog de jachguate
Responder Con Cita