mysql change timestamp on update

Solutions on MaxInterview for mysql change timestamp on update by the best coders in the world

showing results for - "mysql change timestamp on update"
Greta
08 Jun 2019
1ALTER TABLE whatevertable
2     CHANGE whatevercolumn 
3            whatevercolumn TIMESTAMP NOT NULL
4                           DEFAULT CURRENT_TIMESTAMP 
5                           ON UPDATE CURRENT_TIMESTAMP;