I have a timestamp [SubmissionDate] field that defaults to current_timestamp, and I was wondering how can I query my database in such a way that, for example, I only show all records submitted for a specific year and month? Sort of:
SELECT * FROM DNA_entrys
WHERE `SubmissionDate`.month = February
AND `SubmissionDate`.year = 2004
There should be an elementary operation, but I could not find a quick answer to this
source
share