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

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

 

  查询结果:

  

猜你喜欢

转载自www.cnblogs.com/irobotzz/p/12311170.html