mysql set current timestamp when a field is 1 code example Example: mysql CURRENT_TIMESTAMP() CURRENT_TIMESTAMP()