mysql-根据身份证号更新性别、出生日期,根据出生日期查询年龄...

根据身份证号查询更新性别: update uufs_ltx_info set xb= (case SUBSTRING(sfzh,17,1)&1 when 1 then '男' else '女' end) ; update 表名 set xb = (case SUBSTRING(sfzh,17,1)&
posted @ 2023-03-20 16:15  小肥猪片儿的小小笔记  阅读(625)  评论(0编辑  收藏  举报