有时间时间字段
是2019-11-03 10:21:46.000方式显示的最好有表格式形式输出
2019-11-01 01 具体数量
2019-11-01 02 具体数量
2019-11-01 03 具体数量谢谢各位
是2019-11-03 10:21:46.000方式显示的最好有表格式形式输出
2019-11-01 01 具体数量
2019-11-01 02 具体数量
2019-11-01 03 具体数量谢谢各位
select dt=convert(varchar(13),[时间字段],120),
qty=count(1)
from [表名]
group by convert(varchar(13),[时间字段],120)
order by convert(varchar(13),[时间字段],120)