WITH RECURSIVE calendar (n) AS
-> (
-> SELECT DATE(now())
-> UNION ALL
-> SELECT ADDDATE(n, INTERVAL 1 DAY) FROM calendar WHERE n < '2018-30-03'
-> )
->
-> SELECT * FROM calendar;
+------------+
| n |
+------------+
| 2018-03-09 |
| 2018-03-10 |
| 2018-03-11 |
| 2018-03-12 |
...