mysql获取连续日期
其中100 为获取一百天内的日期,开始时间为当天
select
(curdate() + interval (cast(`mysql`.`help_topic`.`help_topic_id` as signed) - 100) day) AS `DAY`
from `mysql`.`help_topic` having (`DAY` <= date_format(curdate(),'%Y-%m-%d'))
order by `DAY` desc```
select
(curdate() + interval (cast(`mysql`.`help_topic`.`help_topic_id` as signed) - 100) day) AS `DAY`
from `mysql`.`help_topic` having (`DAY` <= date_format(curdate(),'%Y-%m-%d'))
order by `DAY` desc```