Something like this will do this: -
INSERT INTO my_table (the_date) SELECT ADDDATE('2013-04-13', INTERVAL SomeNumber DAY) FROM (SELECT a.i+bi*10+ci*100+di*1000 AS SomeNumber FROM integers a, integers b, integers c, integers d) Sub1 WHERE SomeNumber BETWEEN 0 AND 1000
It is based on a table called integers, with one column i with 10 rows, values ββfrom 0 to 9.
The Between clause is available there, so you can limit the range of numbers added to the date.
source share