i have one table called product
product_id rate Quantity modified_fields
1 100 4
3 32 2
5 43 1
so if i am updating any field in product table
suppose i am changing rate 100 to 50 then i need to set up one trigger that will update modified_fields column with rate:50(New value)
product_id rate Quantity modified_fields
1 50 4 rate:50
3 32 2
5 43 1
Edit: What I basically need is that I need to identify which particular column was edited on an Update operation. Table can have 50 columns, and any one of them can be updated. Trigger will basically determine which column is updated, and the corresponding new value. It will then update the modified fields column with the update column name : new value
Any help would be appreciated