created at and updated at in mysql

Solutions on MaxInterview for created at and updated at in mysql by the best coders in the world

showing results for - "created at and updated at in mysql"
Eduardo
17 Nov 2017
1ALTER TABLE t1
2ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
3ADD COLUMN updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
Laura
28 May 2020
1ALTER TABLE t1
2ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
3ADD COLUMN updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
4