mysql中的数据脱敏

 

 

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

sql:

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

 

posted @ 2022-04-02 10:28  陌风陌风  阅读(548)  评论(0)    收藏  举报