统计当前月的天数
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
select day(dateadd(mm,1,getdate())-day(getdate())) as 本月天数 ;
楼上正解
Mark
顶、方法很多,楼上亦可