MySQL 替换手机号码中间4位为星号显示

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

 

  查询结果:

  技术图片