I'm writing a PHP application that will store STUDENT
data in a MySQL relational database. I'm trying to find the best way / datatype to store a month and year together without the day.
I don't know whether I should just store it as a DATE and use PHP someway to just store the day as the 1-st or use a different datatype that I'm not currently familiar with. Ideally, I do not want to store a day, because the day will not always be the same and would require changing PHP source code if the day changed in the future.
Just for more background info, I'm storing a STUDENT's INTENT_TO_GRAD
. The client seems to only want this information as a reference or a visual for a report as opposed to using it for data manipulation. In other words, the only functional requirement for this data is to be displayed in a report.