I couldn’t find any suitable explanation on this so here goes:
I have tableA and tableB.
tableA has the fields column1, column2, column3.
tableB has the fields columnA, column1, columnC, columnD, columnE.
column1 in tableA is a primary key. column1 in tableB is a foreign key that references column1 in tableA. column1 in tableB has a ON UPDATE CASCADE constraint.
My question then is.. If I change the values of every field in tableA, will tableB also obtain those same values in its fields?
No way, it’ll update just the foreign key in TableB. The constraints in MySQL only updates the related column.