摘要:
datefirst 无关版 2004-09-29:-- playyuer@Microshaoft.com invent-- http://www.Microshaoft.comdeclare @ datetimeset @ = '1995-02-25 11:00:50'set @ = getdate()--set datefirst 3select @ as Date ,dateadd(year,datediff(year,0,@),0) as FirstDayOfYear ,dateadd(year,1+datediff(year,0,@),0)-1 as LastDayOf 阅读全文