SELECT
@cdate := date_add( @cdate, INTERVAL - 1 DAY ) AS date
FROM
( SELECT @cdate := date_add( CURDATE(), INTERVAL + 1 DAY ) FROM {table} LIMIT 60 ) a
WHERE
@cdate >= '2021-12-15'
标签:时间表,INTERVAL,add,cdate,虚拟,mysql,date,DAY,SELECT
来源: https://www.cnblogs.com/xzhlch/p/15712432.html