select year(getdate())*10000+((month(getdate())/3)*3+1)*100 + 1 --季度第一天
select year(getdate())*10000+((month(getdate())/3)*3+3)*100 + 31 --季度最后一天
select year(getdate())*10000+((month(getdate())/3)*3+1)*100 + 1 --季度第一天
select year(getdate())*10000+((month(getdate())/3)*3+3)*100 + 31 --季度最后一天
转载于:https://www.cnblogs.com/thankyou555/p/3202049.html