I'm trying to figure out how to update a table with values from a different table when the second table is updated. Basically I want to be able to insert a new row into the donate_blood table, then auto create a new blood entry with the values patients.blood_type and patients.id. The blood.blood_id is set to auto increment.
Is this possible? I'm not too familiar with triggers and it isn't making much sense to me. Could someone point me in the right direction?
I can try to explain further if it doesn't exactly make sense.