troubleshooting Question

Mysql SELECT all items in a particular month

Avatar of Lightwalker
Lightwalker asked on
PHPMySQL Server
2 Comments1 Solution460 ViewsLast Modified:
Dear Experts,

This is so simple and yet I can not find out how to do it. I have a Date field in an order table and I would like to only select the orders from April of this year (2012). my Date field is in a timestamp format

How can I do that. All I have tried has not worked.

SELECT Date, 
	DetailItemID, 	
FROM order WHERE  Date = MONTH(04) 

Many thanks for your help
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros