I have a column in my table that stores a date in the format:
2011-08-06 11:00:00
Is there a way to write an sql statement that selects row entries based on this column’s MONTH?
Say for example, how would I select all entries in this table where COLUMN_NAME = "August"?
You can use the MONTH() function.
If you absolutely need it as a name, you can use MONTHNAME() the same way. But the returned name depends on the locale.