आप गतिशील तिथियां उत्पन्न कर सकते हैं और फिर उन्हें नीचे दी गई तालिका में डाल सकते हैं। मैंने अस्थायी तालिका के बजाय एक तालिका का उपयोग किया है आप इसे अस्थायी तालिका में बदल सकते हैं।
CREATE TEMPORARY TABLE IF NOT EXISTS dates_test
(dates datetime);
insert into dates_test (dates)
select
t1.date
from
(
select
a.Date as date
from (
select curdate() - INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as Date
from (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as a
cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as b
cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as c
) a
where a.Date BETWEEN '2014-11-11'
and
DATE_ADD('2014-11-11' ,INTERVAL 3 DAY)
)t1
यह रहा एक डेमो