MySQL 替换*中间4位为星号显示

select REPLACE(tel,SUBSTR(tel,4,4),'****') tel from rwork_uinfo where comp_id = 3722

 

  查询结果:

  

原文地址:https://www.cnblogs.com/irobotzz/p/12311170.html