先计算年份,再在生日日期上加上年份,最后再与生日比较 select abs(datediff(day,dateadd(year,datediff(year,Birthday,getdate()),Birthday),getdate()))
计算一周生日提醒
时间: 2024-10-20 20:47:23
先计算年份,再在生日日期上加上年份,最后再与生日比较 select abs(datediff(day,dateadd(year,datediff(year,Birthday,getdate()),Birthday),getdate()))
计算一周生日提醒