标签:code sda sql pre day font int datetime class
IF YEAR(SYSDATETIME()) <> YEAR(DATEADD(day, 1, SYSDATETIME())) PRINT ‘不是‘; ELSE PRINT ‘是‘; GO
IF MONTH(SYSDATETIME()) <> MONTH(DATEADD(day, 1, SYSDATETIME())) PRINT ‘不是‘; ELSE PRINT ‘是‘; GO
1.年,2.月
标签:code sda sql pre day font int datetime class
原文地址:https://www.cnblogs.com/yuanzijian-ruiec/p/9484077.html