sql auto update dupdated at

Solutions on MaxInterview for sql auto update dupdated at by the best coders in the world

showing results for - "sql auto update dupdated at"
Giulia
21 Jan 2019
1ALTER TABLE t1
2ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
3ADD COLUMN updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
4
Maiwenn
22 Jan 2020
1CREATE TABLE t1 (
2  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ,
3  updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
4);
5