I have three columns, y, m and d (year, month and day) and want to save this as a date.
What function would I use on mySQL for this?
Apparently makedate uses the year and day of the year (see below), but I have a month.
I know that I can use STR_TO_DATE (str, format), building a string from (y, m, d), but I would suggest that there is an easier way to do this.
LIST OF REFERENCES
MAKEDATE (year, day)
Returns the date, year, and year. dayofyear must be greater than 0 or the result is NULL.
date mysql
chongman
source share