I am using mysql, and have four fields in all tables,
created_by varchar(128)
created_on timestamp default current_timestamp
updated_by varchar(128)
updated_on timestamp default current_timestamp
I have read on different answers on stack overflow that every time when some operation is performed on a table row, the field whose default value is current_timestamp is automatically updated. But I want to created_on to automatically insert current_timestamp when a new record updated, and when this record updated after some time, only updated_by field automatically updated to current_timestamp not the created_by.