I have a table with two fields insert_time and update_time.
The type of insert_time
is varchar(30) NOT NULL DEFAULT ''
while the type of update_time
is timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
.
insert into tableName(inser_time,update_time) values('2017-02-17 20:30:38')
will make the update_time
lose its meanings.
So how to make the two fields have a same server time when inserted if not update the Mysql version?