Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/05/2011, 09:42
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Actualizo un campo y me actualiza la fecha automaticamente :(

Cita:
The auto-update TIMESTAMP column, if there is one, is automatically updated to the current timestamp when the value of any other column in the row is changed from its current value, unless the TIMESTAMP column explicitly is assigned a value other than NULL.
tomado de: http://dev.mysql.com/doc/refman/5.0/en/timestamp.html

Para evitar este comportamiento, al momento de crear la tabla puedes poner que el valor por defecto sea NULL.

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming