Check out example codes for "mysql set column equal to another automatic". It will help you in understanding the concepts better.

Code Example 1

CREATE TRIGGER foobar AFTER UPDATE ON table
  FOR EACH ROW SET foo = foo + NEW.bar;

Learn ReactJs, React Native from akashmittal.com