declare @yearmonth varchar(6)
SQL 查找某年某月的天数
set @yearmonth='202002'
SQL 查找某年某月的天数
select day(dateadd(month,1,@yearmonth+'01')-1)

相关文章: