数据库
MySql 时间比较:DATEDIFF函数与大于小于号
SELECTCOUNT(*)FROMtableAWHERERECORDDATE>='2015-11-11'ANDRECORDDATE<='2016-11-11';SELECTCOUNT(*)FROMtableAWHEREDATEDIFF(RECORDDATE,'2015-11-11')>=0ANDDATEDIFF(RECORDDATE,'2016-11-11')<=0;结果