select year(time) 年,month(time) 月,day(time) 日,sum(num) from tablegroup by year(time),month(time),day(time)或者select convert(char(8),time,112) dt,sum(num) from tablegroup by convert(char(8),time,112)
posted on 2018-02-11 15:09 凤鸣岐山 阅读(70) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 凤鸣岐山 Powered by .NET 9.0 on Kubernetes