日期:2014-05-16 浏览次数:20800 次
DECLARE @a DATETIME DECLARE @b DATETIME SET @a ='2014-03-18' SET @b='2014-03-23' SET DATEFIRST 1 SELECT DATEPART(week,@a),DATEPART(week,@b) /* ----------- ----------- 12 12 (1 行受影响) */