MYSQL select all from table where month? MYSQL select all from table where month? sql sql

MYSQL select all from table where month?


You could use

SELECT create_date FROM table WHERE MONTH(create_date) = 5


SELECT * FROM your_table WHERE month(create_date) = 5

look at documentationThis query works on datetime type of column