update datetime column in mysql on each update automatically code example Example: mysql CURRENT_TIMESTAMP() CURRENT_TIMESTAMP()