sql提取身份证号信息--省市区县,年龄分组
生活随笔
收集整理的這篇文章主要介紹了
sql提取身份证号信息--省市区县,年龄分组
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
sql提取身份證號信息--省市區縣,年齡分組
insert into test009 select t8.name ,t8.mobile ,t8.idcard ,t8.birthday ,t8.age ,t8.sex ,t8.property ,t8.constellation ,t8.province ,t8.age_group ,t8.six_idcard ,apa.desc1 ,t8.create_date from (select zone ,desc1 from apo_areacode ) as apa right join (selectname ,mobile ,idcard ,birthday ,age ,sex ,property ,constellation ,province ,six_idcard ,create_date ,(case when age<20 then '20歲以下'when age>=20 and age <=29 then '20~29歲'when age>=30 and age <=39 then '30~39歲'when age>=40 and age <=49 then '40~49歲'when age>=50 and age <=59 then '50~59歲'when age>=60 then '60歲及以上'else null end)age_group from test008) as t8 on apa.zone = t8.six_idcard ;?
總結
以上是生活随笔為你收集整理的sql提取身份证号信息--省市区县,年龄分组的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 将电话号码从excel导入手机联系人
- 下一篇: 大连理工大学计算机学院讲师名单,大连理工