1ALTER TABLE t1
2ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
3ADD COLUMN updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
4
1CREATE TABLE t1 (
2 created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ,
3 updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
4);
5