MYSQL關於日期統計常用的SQL語句

--  統計   select count(*) as '當天記錄數' from web_product where date(p_createtime) = curdate(); select count(*) as '當天記錄數' from web_product where to_days(p_createtime) = to_days(now());   SELECT count(*) a
相關文章
相關標籤/搜索