mysql嵌套子查詢之數據統計

統計限制時間範圍天天的數據,sql語句以下:sql SELECT t.extend_time, COUNT(*) AS total FROM (SELECT DATE_FORMAT(extend_time, ‘%Y-%m-%d’) AS extend_time, need_nums FROM table WHERE appid = ‘***’ AND act_id = ‘6’ AND need_n
相關文章
相關標籤/搜索