hi all am a beginner in php
Am working on trigger i need to insert the changed values in trigger table when the tables get updated,while inserting in trigger i need the column name of the changed fields so i have tried the following code but it not working only it accepts one condition on trigger its not possible to set multiple triggers for a single table help me to solve this issues
IF NEW.account_holder <> OLD.account_holder THEN
INSERT INTO bank_trigger (filed_name) VALUES('account');
END IF
IF NEW.branch_name <> OLD.branch_name THEN
INSERT INTO bank_trigger (filed_name) VALUES('branch_name');
END IF;