Answers for "mysql add timestamp on update"

SQL
2

mysql sql add created updated timestamp to existing table

ALTER TABLE t1
ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
Posted by: Guest on September-19-2020

Code answers related to "mysql add timestamp on update"

Code answers related to "SQL"

Browse Popular Code Answers by Language