📜  mysql on update current_timestamp - SQL 代码示例

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

代码示例2
ALTER TABLE whatevertable
     CHANGE whatevercolumn 
            whatevercolumn TIMESTAMP NOT NULL
                           DEFAULT CURRENT_TIMESTAMP 
                           ON UPDATE CURRENT_TIMESTAMP;