mysql一个月前

https://www.cnblogs.com/zhangqunshi/p/6679847.html

select user_id,
user_name,
createtime
from t_user where DATE_SUB(CURDATE(), INTERVAL 1 MONTH) <= date(createtime);

    A+
发布日期:2018年01月17日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: