mysql> select count(*) from table where date like '2018-08-18%';+----------+| count(*) |+----------+| 2128 |+----------+1 row in set (0.98 sec)mysql> select count(*) from table where date(date) = '2018-08-18';+----------+| count(*) |+----------+| 2128 |+----------+1 row in set (1.21 sec)mysql> select count(*) from table where date(date) = '2018-08-18';+----------+| count(*) |+----------+| 2128 |+----------+1 row in set (1.21 sec)mysql> select count(*) from table where date like '2018-08-18%';+----------+| count(*) |+----------+| 2128 |+----------+1 row in set (0.98 sec)mysql> select count(*) from table;+----------+| count(*) |+----------+| 2066946 |+----------+1 row in set (0.66 sec)mysql>