select date_add(curdate(), interval(cast(help_topic_id as signed integer) - 30) day) day
from mysql.help_topic
where help_topic_id < day(last_day(curdate()))
order by help_topic_id
mysql 获取最近一个月每一天
最新推荐文章于 2024-10-15 17:04:41 发布
select date_add(curdate(), interval(cast(help_topic_id as signed integer) - 30) day) day
from mysql.help_topic
where help_topic_id < day(last_day(curdate()))
order by help_topic_id