Is it possible in MySQL to create some kind of rule for a table that when I insert a new row into that table, that it updates a column in a separate table?
Thank you!
Is it possible in MySQL to create some kind of rule for a table that when I insert a new row into that table, that it updates a column in a separate table?
Thank you!
Yes it is possible. You can use trigger.You can create trigger insert on table and updated value to second table.
More details for trigger refer this link
You need to use AFTER INSERT Trigger for the table in which new rows being inserted.
You can check the after insert trigger here:Link