Как получить все даты с 01-01-2014 по сегодня с помощью простого mysql-запроса без хранимы процедур?
То ли дело в postgreSQL:
SELECT * FROM generate_series('2014-01-01'::timestamp, now(), '1 day');
Нашел еще вот такоеselect a.Date d
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 union all select 10) 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 union all select 10) 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 union all select 10) as c
) a
where a.Date between '2014-01-01' and '2016-11-24' 
group by d