各位兄弟都来,如何在sql里利用身份证查询出生日期?答:1 then 55 else 50 end, convert(date, SUBSTRING(身份证号, 7, 6), 12) )when 18 then dateadd(year, case convert(int, SUBSTRING(身份证号,17,1))%2 when 1 then 55 else 50 end, convert(date, SUBSTRING(身份证号, 7, 8), 112) )else NULL end as 退休日期 from 养老表 ...