I have a datetime column in a MySQL table and I’d like to select records that have the same year, month, and day (but perhaps different hour and minutes). In other cases, I’d select ones with the same year and month. Is there a way to do that?
Share
You can also do
SELECT * FROM table WHERE datetime LIKE '2008-08-01%‘or