I don't understand why the between operator isn't working in the following example:
CREATE TABLE orders (
packed DATETIME
);
INSERT INTO orders VALUES ('2018-02-24 00:00:00');
SELECT COUNT(*) FROM orders WHERE packed = '2018-02-24 00:00:00';
SELECT COUNT(*) FROM orders WHERE (packed BETWEEN '2018-02-00 00:00:00' AND '2018-03-00 00:00:00');
The first select query returns 1. The second query returns 0. Why?
MySQL version: 14.14 Distrib 5.7.21