网站程序如何读取一周之内的数据

网站H5 2019-10-03 20:31:57
一周内的
sqlTotal="select Count(*) from Count where DATEDIFF('d',time,Now())<=7"

昨天
sqlTotal="select Count(*) from Count where DATEDIFF('d',time,Now())=1"

今天
sqlTotal="select Count(*) from Count where DATEDIFF('d',time,Now())=0
咨询小瓶科技
咨询我们
顶部