I am trying to find the next instance of a date in MySQL based on a DOB - for example, if the DOB is 1975-12-20 and we are running it today then the next birthday is 2020-12-20.
Likewise if the DOB is 1975-12-19 then the next birthday is 2020-12-19 but if the DOB is 1975-12-21 then the next birthday is 2019-12-21.
I can do this in PHP by exploding the date and replacing the year but I want to try and do it in MySQL as it will be quicker to run etc
DOB is a date field 0000-00-00
I found How to calculate next birthday given a date of birth? for postgressql which I thought would work but it is using a function called age which doesnt seem to work in MySQL