mysql date only this month code example
Example 1: mysql extract month
SELECT EXTRACT(MONTH FROM '2020-07-05')
Example 2: this month mysql where
SELECT *
FROM table
WHERE MONTH(`columnName`) = MONTH(CURRENT_DATE());
Example 3: mysql select month and year
SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;