自己写的sql作业DECLARE @year INT SELECT @year=2100 if(@year0!=0 or @year@0=0 and @year%4=0) PRINT CONVERT(char(4),@year)+'是闰年' else PRINT CONVERT(char(4),@year)+'不是闰年' go