mysql中的数据脱敏


例如我们脱敏的是电话,字段为phone

sql:

select phone as 电话前,concat(left(phone,3),'********') as 电话后 from user

相关