Using DEFAULT CURRENT_TIMESTAMP
when done UPDATE
this date will also be updated to date UPDATE
?
Or is it fixed and inserted only once at the time of INSERT
?
Using DEFAULT CURRENT_TIMESTAMP
when done UPDATE
this date will also be updated to date UPDATE
?
Or is it fixed and inserted only once at the time of INSERT
?
To update both the insert and the update, you need both statements:
DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
More details on manual .