I'm wondering if there's a simple way to query a mySQL 4 table in order to get all records whose datetime field (say 'dateposted') is equal to a known year?
e.g:
select * from table where year(dateposted)=myYearVariable
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.