I have a quick question. I\'m have a db an audit Table with a datetime column in it. (i.e 2012-03-27 00:00:00) and I\'m building a mySQL query to return a set of rows if the dat
As far as I know, dates in MySql are represented with the format yyyy-MM-dd hh:mm:ss
hence you need to do this:
SELECT * FROM util_audit
WHERE DATED >= '2012-02-15 00:00:00' AND DATED <= '2012-03-31 00:00:00';
Or even better:
SELECT * FROM util_audit
WHERE DATED BETWEEN '2012-02-15 00:00:00' AND '2012-03-31 00:00:00';