I have a MySQL db. When a field in a table is updated can I write a function or by some other process get a field in another table to be automatically updated?
ie, and this is what I want to do, if table 1 field discount_code and discount code is 123456, then in table 2 can I have times_code_can_be_used (starts at say 20) automatically reduced by 1???
Not done this before and need some guidance.
Thank you.