Question 1:Can you use a batch SQL or store procedure to calculating the Number of Days in a Month Answer 1: 找出当月的天数 selectdatepart(dd,dateadd(dd,-1,dateadd(mm,1,cast(cast(year(getdate()) asvarchar)+'-'+cast(month(getdate()) as varchar)+'-01' as datetime)))) Question2:Can you use a SQL statement to calculating it! Howcan I print "10 to 20" for books ...[ 查看全文 ]