Skip to main content
edited body
Source Link
Kondybas
  • 4.6k
  • 17
  • 14

I tried this solution :

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;
Source Link

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;