身份证号有15位和18位的..在sql中该如何判断?

I_sex = CASE when case when len(s_sfzhm)=15 then Substring(s_sfzhm,15,1) else Substring(s_sfzhm,17,1) END %2 = 1 then '' else '' END

 

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案