SQL统计每月每天不同时间段执行数

  --生成2018-01-01至2028-01-01的日期临时表#dt_month --实际应用中,建议创建成一个日期表,可减少每次调用生成临时表的性能损耗 create table #dt_month(yyrq varchar(10),[year] int,[month] int,[day] int) declare @thisdate varchar(10),@enddate varchar
相关文章
相关标签/搜索