I am using two tables.
User table contains the firstname and lastname field and contactinfo is another table contain the field called ‘Name’ with usertable Id.
I want to make a trigger whenever the User tables firstname or lastname is updated. I want change this contactinfo’s Name to whatever they changed in the User table. Is it possible through trigger?
The general syntax of CREATE TRIGGER is :
Take a look at examples from http://www.roseindia.net/mysql/mysql5/triggers.shtml and http://dev.mysql.com/doc/refman/5.1/en/create-trigger.html