Philipp Hasenfratz: timestamp nicht aktualisieren?

Beitrag lesen

Halihallo Martin

ich habe zwei Spalten TIMESTAMP in meiner mySQL-DB.
Wenn ich ein UPDATE eines Datensatzes mache, wird ein TIMESTAMP aktuallisiert, der andere nicht.
Beim UPDATE spreche ich keine der beiden Spalten an.
Wie kommt es zu diesem Vorgang?

Es wird jeweils _nur_ die erste Timestamp auf die aktuelle Zeit gesetzt, jede weitere
Timestamp-Column ist von dieser Funktionalität nicht beeinflusst.

Auszug aus http://www.mysql.com/doc/en/DATETIME.html :
"The TIMESTAMP column type provides a type that you can use to automatically mark INSERT or UPDATE operations with the current date and time. If you have multiple TIMESTAMP columns, only the first one is updated automatically. "

Viele Grüsse

Philipp