update mysql field with CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP code example
Example: mysql on update current_timestamp
Press CTRL+C to copy CREATE TABLE t1 (
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
dt DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);