1
In Mysql if I want to search only dates that are in the current year, I do so:
WHERE dia = year(CURDATE())
But I’ve been trying to find dates that are in the same month as the current one:
WHERE dia = month(CURDATE())
and does not accept, returns empty, even having dates in the current month registered, how to do?