declare @dateX smalldatetime
set @dateX = '2001-1-3'
--本月多少天
SELECT 32-Day(@datex+32-Day(@datex))

就是这么简单。


相关文章: