Hi everyone, sorry it's been a while!
I had a bit of a breakthrough today, finally achieving (or at least emulating the behaviour of) a for loop i...
For further actions, you may consider blocking this person and/or reporting abuse
It would be way more sensible to have a table called 'review_periods' with the time period.
Then join this table to multiply out the number of reviews. So insert into review alerts select alert_date = review_due_date - interval review_periods.period month, ..., from review_periods join .....
remember that join means mulitply :)
( and i'm never a fan of triggers because they can be changed without any version control)
Nice.
INSERT INTO ... SELECTcan be very interesting to work with indeed.Note: I'm pretty sure you do not need to
SELECT NEW.review_alert_id, you can just use the value directly.