mysql简单脱敏

来源:这里教程网 时间:2026-03-01 15:35:17 作者:

update patient set selfphone=concat(left(selfphone ,3),'*****',right(selfphone ,4))
update patient set familyphone=concat(left(familyphone ,3),'*****',right(familyphone ,4));
update patient set id_num=concat(left(id_num,6),'*****',right(id_num,2));
update patient set birthday=concat(left(birthday,4),'**');
update patient set name=concat(left(name,1),'**');

相关推荐