select
@s := @s + 1 as 'index',
DATE(DATE_SUB(CURRENT_DATE, interval @s day)) as 'date'
from
crq_reportbaseinfo,
(
select
@s := -1) temp
where
@s < 5
MySQL自动生成日期
最新推荐文章于 2024-09-10 10:48:41 发布