📜  在 MYSQL 代码示例中添加创建和更新的列

📅  最后修改于: 2022-03-11 15:05:02.559000             🧑  作者: Mango

代码示例1
ALTER TABLE t1
ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;