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