先计算年份,再在生日日期上加上年份,最后再与生日比较 select abs(datediff(day,dateadd(year,datediff(year,Birthday,getdate()),Birthday),getdate()))