sql:统计(group by)

    技术2022-07-13  72

    1、sum和group by 

    select s.CreateTime,sum(Value) from ( SELECT a.CreateTime CreateTime, a.`Value` Value FROM lubri_log a) s GROUP BY s.CreateTime

    Processed: 0.010, SQL: 9