SQL Server中取得某个月的天数

declare @dt datetime

set @dt=getdate()

select 32-Day(@dt+(32-Day(@dt)))
posted @ 2005-04-27 11:35  魔豆  阅读(780)  评论(0编辑  收藏  举报