I would like to run a query like
select ... as days where `date` is between \'2010-01-20\' and \'2010-01-24\'
And return data like:
One more solution for mysql 8.0.1 and mariadb 10.2.2 using recursive common table expressions:
with recursive dates as ( select '2010-01-20' as date union all select date + interval 1 day from dates where date < '2010-01-24' ) select * from dates;