update CREW_SailorInfo

set DT_DOB=
(
case 

when len(NVC_IdentityCard)=18 then  
substring ( NVC_IdentityCard,7,8 ) 

when len(NVC_IdentityCard)=15 then
 substring ( NVC_IdentityCard,7,6 ) 

else null end)

注:此问题仅供参考 如有疑问 请加QQ群181537678  如有您有什么好的方法 请留下您的脚步 以便参考

相关文章:

  • 2021-07-25
  • 2021-12-04
  • 2021-12-04
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2021-12-04
  • 2021-09-27
  • 2022-02-09
  • 2022-12-23
  • 2021-09-29
  • 2021-11-17
相关资源
相似解决方案