In mysql I have a timestamp with the field name added_on. I created that for a table of leads for a crm. But it\'s getting updated whenever I updat
timestamp
added_on
You added a ON UPDATE condition to the column!! To remove this, redefine the column as
ON UPDATE
ALTER TABLE `mytable` MODIFY `added_on` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
This will effectively remove the ON UPDATE condition.