SQL统计每天、每月、每年的数据
摘要:
1、每年select year(ordertime) 年,sum(Total) 销售合计from 订单表group by year(ordertime)2、每月select year(ordertime) 年,month(ordertime) 月,sum(Total) 销售合计from 订单表gro 阅读全文
posted @ 2017-08-22 17:16 A欣 阅读(588) 评论(0) 推荐(0) 编辑