创建语句如下:
ALTER TABLE table_name
ADD COLUMN create_time
timestamp NULL DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN update_time
timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER create_time
;
创建语句如下:
ALTER TABLE table_name
ADD COLUMN create_time
timestamp NULL DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN update_time
timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER create_time
;