SQL语句统计天天、每个月、每一年的数据

SQL语句统计天天、每个月、每一年的数据 spa 一、每一年 select year(ordertime) 年, sum(Total) 销售合计 from 订单表 group by year(ordertime) 二、每个月 select year(ordertime) 年, month(ordertime) 月, sum(Total) 销售合计 from 订单表 group by year(or
相关文章
相关标签/搜索