I have a table with the following fields
id (int)
name (varchar)
dob (datetime)
Now I need a query that can match the month and year at the same time
Now i'm using
select * from users where month(dob)='12' and year(dob)='2010'
I do not want to use month () and year (), can this be done in a single thing?
Help rate
thank
source
share