Answers for "inserting value into created_at and updated_at in sql"

SQL
0

add created and updatedAt fields in mysql

ALTER TABLE t1
ADD COLUMN createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN updatedAt DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
Posted by: Guest on December-02-2020

Code answers related to "inserting value into created_at and updated_at in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language