--取出某个月有几天 SELECT 32-DAY(GETDATE()+(32-DAY(GETDATE()))) SELECT 32-DAY(CAST(‘2000-02-22‘ AS DATETIME)+(32-DAY(CAST(‘2000-02-22‘ AS DATETIME))))
时间: 2024-12-16 05:11:02
--取出某个月有几天 SELECT 32-DAY(GETDATE()+(32-DAY(GETDATE()))) SELECT 32-DAY(CAST(‘2000-02-22‘ AS DATETIME)+(32-DAY(CAST(‘2000-02-22‘ AS DATETIME))))