Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
WITH recursive Date_Ranges AS (
select ‘2018'2018-11-30’30' as Date
union all
select Date + interval 1 day
from Date_Ranges
where Date < ‘2018'2018-12-31’31')
select * from Date_Ranges;
I tried this solution :
WITH recursive Date_Ranges AS (
select ‘2018-11-30’ as Date
union all
select Date + interval 1 day
from Date_Ranges
where Date < ‘2018-12-31’)
select * from Date_Ranges;
I tried this solution :
WITH recursive Date_Ranges AS (
select '2018-11-30' as Date
union all
select Date + interval 1 day
from Date_Ranges
where Date < '2018-12-31')
select * from Date_Ranges;
WITH recursive Date_Ranges AS (
select ‘2018-11-30’ as Date
union all
select Date + interval 1 day
from Date_Ranges
where Date < ‘2018-12-31’)
select * from Date_Ranges;