Reel
Reel

Reputation: 83

Retrieve all records of specific month in MySQL

I'm looking for sql query that can bring records of specific month from all years of record. i.e., I have record from 2001 till date...I want to bring record of May from all years.

Upvotes: 0

Views: 156

Answers (1)

Andy Jones
Andy Jones

Reputation: 6275

Check out the MySQL function 'MONTH'...

WHERE MONTH(some_date) = 5

Upvotes: 3

Related Questions