一、日期函数
参考:mysql 日期操作 增减天数、时间转换、时间戳
1)select count(*) from user_info t where t.created_time > DATE_SUB(now(),INTERVAL 100 DAY); -- 查出100天之前创建的记录数
MySQL 函数
原文:http://www.cnblogs.com/zhiqsyr/p/6050185.html