Answers for "add created updated to existing table mysql"

SQL
0

ADD COLOUNS CREATED AND UPDATED AT IN MYSQL

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
3

mysql update add to existing value

mysql> UPDATE tableName SET sometotal = sometotal+10 WHERE Id = 4;
Posted by: Guest on July-28-2020

Code answers related to "add created updated to existing table mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language