declare @yearmonth varchar(6)set @yearmonth='202002'select day(dateadd(month,1,@yearmonth+'01')-1) 相关文章: