select userId
from login
where DATE_SUB(NOW(),INTERVAL 7 DAY) <= gmtCreated
sql查询7天内的数据
最新推荐文章于 2023-12-13 18:05:26 发布
select userId
from login
where DATE_SUB(NOW(),INTERVAL 7 DAY) <= gmtCreated